diff --git a/frontend/src/lib/components/CollectionCard.svelte b/frontend/src/lib/components/CollectionCard.svelte index 948bd26..1b6df55 100644 --- a/frontend/src/lib/components/CollectionCard.svelte +++ b/frontend/src/lib/components/CollectionCard.svelte @@ -49,9 +49,9 @@
{collection.adventures.length} Adventures
{#if collection.start_date && collection.end_date}- 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' })}
diff --git a/frontend/src/routes/collections/[id]/+page.svelte b/frontend/src/routes/collections/[id]/+page.svelte index 0efe833..49ba896 100644 --- a/frontend/src/routes/collections/[id]/+page.svelte +++ b/frontend/src/routes/collections/[id]/+page.svelte @@ -238,11 +238,11 @@ {#if collection.start_date && collection.end_date} -
Duration: {numberOfDays} days
+Duration: {numberOfDays} days
{/if} -+
Dates: {new Date(collection.start_date).toLocaleDateString('en-US', { timeZone: 'UTC' })} - {new Date( collection.end_date ).toLocaleDateString('en-US', { timeZone: 'UTC' })} @@ -257,7 +257,7 @@ dateString ]} -