Blank success page in January bookings (#1399)

* added 1 to UTC month conversion to make it 1 to 12

* with as numtype
This commit is contained in:
Syed Ali Shahbaz 2021-12-30 21:34:08 +05:30 committed by GitHub
parent bc46f4fbc4
commit 4be4a01968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ export default function Success(props: inferSSRProps<typeof getServerSideProps>)
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(),