Scheduling infrastructure for absolutely everyone.
Fix- Calendar override with the wrong dates and time (#8936)
ASHOK-SINGH75026289fd2a
diff --git a/packages/trpc/server/routers/viewer/availability/schedule/get.handler.ts b/packages/trpc/server/routers/viewer/availability/schedule/get.handler.tsindex 40a43f0320b..0bc6930611e 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 WorkingHoursreturn {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) => ({