diff --git a/src/routes/checkout/[eventId]/+page.svelte b/src/routes/checkout/[eventId]/+page.svelte index c7ce070..4d7ba44 100644 --- a/src/routes/checkout/[eventId]/+page.svelte +++ b/src/routes/checkout/[eventId]/+page.svelte @@ -31,6 +31,9 @@ const handleClick = () => { dialog?.showModal() } + + $: eventTime = event && DateTime.fromISO(event.date) + $: eventTimeTo = event && DateTime.fromISO(event.date).plus({seconds: event.duration}) @@ -44,11 +47,12 @@

Date

- {event && DateTime.fromISO(event.date).toLocaleString(DateTime.DATE_FULL)} + {eventTime && eventTime.toLocaleString(DateTime.DATE_FULL)}

Time

- {event && DateTime.fromISO(event.date).toLocaleString(DateTime.DATE_FULL)} + {eventTime && eventTime.toLocaleString(DateTime.TIME_SIMPLE)} + {eventTimeTo && '- ' + eventTimeTo.toLocaleString(DateTime.TIME_SIMPLE)}

Location