diff --git a/components/booking/pages/BookingPage.tsx b/components/booking/pages/BookingPage.tsx index 4670a61b57..acfcc4d16c 100644 --- a/components/booking/pages/BookingPage.tsx +++ b/components/booking/pages/BookingPage.tsx @@ -185,6 +185,14 @@ const BookingPage = (props: BookingPageProps) => { } }; + const parseDate = (date: string | null) => { + if (!date) return "No date"; + const parsedZone = parseZone(date); + if (!parsedZone?.isValid()) return "Invalid date"; + const formattedTime = parsedZone?.format(timeFormat); + return formattedTime + ", " + dayjs(date).toDate().toLocaleString(i18n.language, { dateStyle: "full" }); + }; + const bookEvent = (booking: BookingFormValues) => { telemetry.withJitsu((jitsu) => jitsu.track(telemetryEventTypes.bookingConfirmed, collectPageParameters()) @@ -286,10 +294,7 @@ const BookingPage = (props: BookingPageProps) => { )}