From 2882b5f7cab5b2dd39a6e29dd1c0ffbd53ad701f Mon Sep 17 00:00:00 2001 From: CarinaWolli Date: Wed, 1 Nov 2023 03:35:18 +1000 Subject: [PATCH] fix booking limits --- packages/prisma/zod-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/prisma/zod-utils.ts b/packages/prisma/zod-utils.ts index a1aebdbeb4..12a233c864 100644 --- a/packages/prisma/zod-utils.ts +++ b/packages/prisma/zod-utils.ts @@ -205,7 +205,7 @@ export const stringOrNumber = z.union([ z.number().int(), ]); -export const stringToDayjs = z.string().transform((val) => dayjs(val)); +export const stringToDayjs = z.string().transform((val) => dayjs(val).utcOffset(val.slice(-6))); export const bookingCreateBodySchema = z.object({ end: z.string().optional(),