From dae16fa6e90e4972d9a00a5bdd040950abc571f8 Mon Sep 17 00:00:00 2001 From: CarinaWolli Date: Tue, 31 Oct 2023 15:34:14 -0400 Subject: [PATCH] fix type error --- 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 626b90d69c..5feb5e3970 100644 --- a/packages/prisma/zod-utils.ts +++ b/packages/prisma/zod-utils.ts @@ -206,7 +206,7 @@ export const stringOrNumber = z.union([ ]); export const stringToDayjs = z.string().transform((val) => { - const timezone = val.match(/([+-]\d{2}:\d{2})$/)[1]; + const timezone = val.match(/([+-]\d{2}:\d{2})$/)[1] || "+00:00"; return dayjs(val).utcOffset(timezone); });