diff --git a/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts b/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts index 40a43f0320..0bc6930611 100644 --- a/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts +++ b/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts @@ -51,11 +51,12 @@ export const getHandler = async ({ ctx, input }: GetOptions) => { userId: user.id, }, }); + // disabling utc casting while fetching WorkingHours return { id: schedule.id, name: schedule.name, isManaged: schedule.userId !== user.id, - workingHours: getWorkingHours({ timeZone: schedule.timeZone || undefined }, schedule.availability || []), + workingHours: getWorkingHours({ timeZone: schedule.timeZone || undefined, utcOffset: 0 }, schedule.availability || []), schedule: schedule.availability, availability: convertScheduleToAvailability(schedule).map((a) => a.map((startAndEnd) => ({