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

refactor: Update date formatting in CollectionCard and CollectionPage components

This commit is contained in:
Sean Morley 2024-07-27 14:44:15 -04:00
parent dbe2f01b8d
commit 0ea9f1d73e
2 changed files with 6 additions and 6 deletions

View file

@ -49,9 +49,9 @@
<p>{collection.adventures.length} Adventures</p>
{#if collection.start_date && collection.end_date}
<p>
Dates: {new Date(collection.start_date).toLocaleDateString()} - {new Date(
Dates: {new Date(collection.start_date).toLocaleDateString('en-US', { timeZone: 'UTC' })} - {new Date(
collection.end_date
).toLocaleDateString()}
).toLocaleDateString('en-US', { timeZone: 'UTC' })}
</p>
<!-- display the duration in days -->
<p>