Edited Time format logic

it was forcing using 'en' or 'id' time format
pull/1/head
Kim MinJae 2021-04-26 23:57:11 +09:00 committed by GitHub
parent 0c764bb8b2
commit 80d974cad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -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>