From 4be4a01968c923c2c28068168f0ea2df975870e2 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Thu, 30 Dec 2021 21:34:08 +0530 Subject: [PATCH] Blank success page in January bookings (#1399) * added 1 to UTC month conversion to make it 1 to 12 * with as numtype --- pages/success.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/success.tsx b/pages/success.tsx index d5028ed6fa..dac92ce9e2 100644 --- a/pages/success.tsx +++ b/pages/success.tsx @@ -64,7 +64,7 @@ export default function Success(props: inferSSRProps) const event = createEvent({ start: [ date.toDate().getUTCFullYear(), - date.toDate().getUTCMonth(), + (date.toDate().getUTCMonth() as number) + 1, date.toDate().getUTCDate(), date.toDate().getUTCHours(), date.toDate().getUTCMinutes(),