From 8f5843ab957b4d22a1eeb19bdb9d3723266fca2c Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 8 Mar 2023 22:24:11 +0000 Subject: [PATCH] Use inviteeTimeZone instead of organizerTimeZone (#7607) --- packages/features/bookings/lib/handleNewBooking.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts index 85254195ca..34cdb45a4a 100644 --- a/packages/features/bookings/lib/handleNewBooking.ts +++ b/packages/features/bookings/lib/handleNewBooking.ts @@ -123,7 +123,7 @@ const isWithinAvailableHours = ( const timeSlotStart = dayjs(timeSlot.start).utc(); const timeSlotEnd = dayjs(timeSlot.end).utc(); const isOrganizerInDST = isInDST(dayjs().tz(organizerTimeZone)); - const isInviteeInDST = isInDST(dayjs().tz(organizerTimeZone)); + const isInviteeInDST = isInDST(dayjs().tz(inviteeTimeZone)); const isOrganizerInDSTWhenSlotStart = isInDST(timeSlotStart.tz(organizerTimeZone)); const isInviteeInDSTWhenSlotStart = isInDST(timeSlotStart.tz(inviteeTimeZone)); const organizerDSTDifference = getDSTDifference(organizerTimeZone);