Skip to content

Commit

Permalink
Blank success page in January bookings (calcom#1399)
Browse files Browse the repository at this point in the history
* added 1 to UTC month conversion to make it 1 to 12

* with as numtype
  • Loading branch information
alishaz-polymath authored Dec 30, 2021
1 parent bc46f4f commit 4be4a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 4be4a01

Please sign in to comment.