Edited Time format logic

it was forcing using 'en' or 'id' time format
This commit is contained in:
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

View file

@ -120,11 +120,7 @@
/> />
<p class="text-white text-center"> <p class="text-white text-center">
{$t('calculator.resin.currentTime')}: {$t('calculator.resin.currentTime')}:
{#if $t('calculator.resin.timeFormat') === 'en'} {currentTime.locale($t('calculator.resin.timeFormat')).format('dddd HH:mm:ss')}
{currentTime.locale('en').format('dddd HH:mm:ss')}
{:else}
{currentTime.locale('id').format('dddd HH:mm:ss')}
{/if}
</p> </p>
</div> </div>
<div class="md:col-span-1 xl:col-span-2"> <div class="md:col-span-1 xl:col-span-2">
@ -188,11 +184,7 @@
<tr> <tr>
<td class="text-red-400" colspan="2"> <td class="text-red-400" colspan="2">
{$t('calculator.resin.fullTime')}: {$t('calculator.resin.fullTime')}:
{#if $t('calculator.resin.timeFormat') === 'en'} {fullTime.locale($t('calculator.resin.timeFormat')).format('dddd HH:mm:ss')} ({fullTime.locale($t('calculator.resin.timeFormat')).fromNow()})
{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}
</td> </td>
</tr> </tr>
</table> </table>