Scheduling infrastructure for absolutely everyone.
Use inviteeTimeZone instead of organizerTimeZone (#7607)
Alex van Andel8f5843ab957b
diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.tsindex 85254195caf..34cdb45a4aa 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);