mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-23 07:17:43 +01:00
Edited Time format logic
it was forcing using 'en' or 'id' time format
This commit is contained in:
parent
80d974cad9
commit
a4ec0365f2
1 changed files with 1 additions and 7 deletions
|
@ -46,15 +46,9 @@
|
|||
<img src={originalResin.image} alt={originalResin.label} class="h-6 w-6 inline" /></td
|
||||
>
|
||||
<td class="pr-2 text-white text-center">
|
||||
{#if $t('calculator.resin.timeFormat') === 'en'}
|
||||
{dayjs(new Date(stepTime[i + 1]))
|
||||
.locale('en')
|
||||
.locale($t('calculator.resin.timeFormat'))
|
||||
.fromNow()}
|
||||
{:else}
|
||||
{dayjs(new Date(stepTime[i + 1]))
|
||||
.locale('id')
|
||||
.fromNow()}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/each}
|
||||
|
|
Loading…
Reference in a new issue