mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-27 01:06:29 +01:00
Edited Time format logic
it was forcing using 'en' or 'id' time format
This commit is contained in:
parent
0c764bb8b2
commit
80d974cad9
1 changed files with 2 additions and 10 deletions
|
@ -120,11 +120,7 @@
|
|||
/>
|
||||
<p class="text-white text-center">
|
||||
{$t('calculator.resin.currentTime')}:
|
||||
{#if $t('calculator.resin.timeFormat') === 'en'}
|
||||
{currentTime.locale('en').format('dddd HH:mm:ss')}
|
||||
{:else}
|
||||
{currentTime.locale('id').format('dddd HH:mm:ss')}
|
||||
{/if}
|
||||
{currentTime.locale($t('calculator.resin.timeFormat')).format('dddd HH:mm:ss')}
|
||||
</p>
|
||||
</div>
|
||||
<div class="md:col-span-1 xl:col-span-2">
|
||||
|
@ -188,11 +184,7 @@
|
|||
<tr>
|
||||
<td class="text-red-400" colspan="2">
|
||||
{$t('calculator.resin.fullTime')}:
|
||||
{#if $t('calculator.resin.timeFormat') === 'en'}
|
||||
{fullTime.locale('en').format('dddd HH:mm:ss')} ({fullTime.locale('en').fromNow()})
|
||||
{:else}
|
||||
{fullTime.locale('id').format('dddd HH:mm:ss')} ({fullTime.locale('id').fromNow()})
|
||||
{/if}
|
||||
{fullTime.locale($t('calculator.resin.timeFormat')).format('dddd HH:mm:ss')} ({fullTime.locale($t('calculator.resin.timeFormat')).fromNow()})
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue