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:
parent
dbe2f01b8d
commit
0ea9f1d73e
2 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue