From 52093862ce63ffbe3f5d316a222223496cf4b03a Mon Sep 17 00:00:00 2001 From: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Date: Thu, 7 Nov 2024 11:42:38 +0200 Subject: [PATCH] fix: booker timezone from preference instead of session (#17520) * fix: booker timezone from preference instead of session * fixup! fix: booker timezone from preference instead of session --- packages/platform/atoms/booker/BookerPlatformWrapper.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx b/packages/platform/atoms/booker/BookerPlatformWrapper.tsx index 444c573a6d..c779f0bb93 100644 --- a/packages/platform/atoms/booker/BookerPlatformWrapper.tsx +++ b/packages/platform/atoms/booker/BookerPlatformWrapper.tsx @@ -249,7 +249,7 @@ export const BookerPlatformWrapper = ( eventTypeId: event?.data?.id ?? 0, startTime, endTime, - timeZone: session?.data?.timeZone, + timeZone: timezone, duration: selectedDuration ?? undefined, rescheduleUid: props.rescheduleUid, ...(props.isTeamEvent @@ -336,7 +336,7 @@ export const BookerPlatformWrapper = ( })) ); const { data: overlayBusyDates } = useCalendarsBusyTimes({ - loggedInUsersTz: session?.data?.timeZone || "Europe/London", + loggedInUsersTz: timezone, dateFrom: selectedDate, dateTo: selectedDate, calendarsToLoad: latestCalendarsToLoad,