1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-20 13:29:37 +02:00

chore: Update date formatting in AdventureCard and CollectionCard components

This commit is contained in:
Sean Morley 2024-07-27 14:38:43 -04:00
parent c94a4379c7
commit 59a3a2d72a
3 changed files with 75 additions and 4 deletions

View file

@ -163,7 +163,7 @@
{#if adventure.date && adventure.date !== ''}
<div class="inline-flex items-center">
<Calendar class="w-5 h-5 mr-1" />
<p>{new Date(adventure.date).toLocaleDateString()}</p>
<p>{new Date(adventure.date).toLocaleDateString('en-US', { timeZone: 'UTC' })}</p>
</div>
{/if}
{#if adventure.activity_types && adventure.activity_types.length > 0}