Skip to content

Scheduling infrastructure for absolutely everyone.

fix: unable to remove single recurring instance from gCal (#13960)

Amit Sharma0972307998ec
diff --git a/packages/app-store/googlecalendar/lib/CalendarService.ts b/packages/app-store/googlecalendar/lib/CalendarService.ts
index 3dec9d7e232..1a28f1e5181 100644
--- a/packages/app-store/googlecalendar/lib/CalendarService.ts
+++ b/packages/app-store/googlecalendar/lib/CalendarService.ts
@@ -240,7 +240,9 @@ export default class GoogleCalendarService implements Calendar {
eventId: calEventRaw.existingRecurringEvent.recurringEventId,
});
if (recurringEventInstances.data.items) {
- const calComEventStartTime = dayjs(calEventRaw.startTime).format();
+ const calComEventStartTime = dayjs(calEventRaw.startTime)
+ .tz(calEventRaw.organizer.timeZone)
+ .format();
for (let i = 0; i < recurringEventInstances.data.items.length; i++) {
const instance = recurringEventInstances.data.items[i];
const instanceStartTime = dayjs(instance.start?.dateTime)