From 7a8b9e5f321a59b50b2bf6e725fc3f77bf2f24bc Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 28 Jun 2022 13:17:43 -0600 Subject: [PATCH] Potential fix for availability timeout --- apps/web/server/routers/viewer/slots.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/web/server/routers/viewer/slots.tsx b/apps/web/server/routers/viewer/slots.tsx index de8307cd63..946cabd448 100644 --- a/apps/web/server/routers/viewer/slots.tsx +++ b/apps/web/server/routers/viewer/slots.tsx @@ -1,5 +1,7 @@ import { SchedulingType } from "@prisma/client"; import dayjs, { Dayjs } from "dayjs"; +import timezone from "dayjs/plugin/timezone"; +import utc from "dayjs/plugin/utc"; import { z } from "zod"; import type { CurrentSeats } from "@calcom/core/getUserAvailability"; @@ -15,6 +17,9 @@ import getSlots from "@lib/slots"; import { createRouter } from "@server/createRouter"; import { TRPCError } from "@trpc/server"; +dayjs.extend(utc); +dayjs.extend(timezone); + const getScheduleSchema = z .object({ // startTime ISOString