diff --git a/lib/emails/new-event.ts b/lib/emails/new-event.ts index 0513ee67..448ddec0 100644 --- a/lib/emails/new-event.ts +++ b/lib/emails/new-event.ts @@ -26,7 +26,7 @@ export default function createNewEventEmail(calEvent: CalendarEvent, options: an const icalEventAsString = (calEvent: CalendarEvent): string => { const icsEvent = createEvent({ - start: dayjs(calEvent.startTime).utc().toArray().slice(0, 6), + start: dayjs(calEvent.startTime).utc().toArray().slice(0, 6).map((v, i) => i === 1 ? v + 1 : v), startInputType: 'utc', productId: 'calendso/ics', title: `${calEvent.type} with ${calEvent.attendees[0].name}`, diff --git a/pages/success.tsx b/pages/success.tsx index 90f95a54..0d962393 100644 --- a/pages/success.tsx +++ b/pages/success.tsx @@ -38,7 +38,7 @@ export default function Success(props) { } const event = createEvent({ - start: date.utc().toArray().slice(0, 6), + start: date.utc().toArray().slice(0, 6).map((v, i) => i === 1 ? v + 1 : v), startInputType: 'utc', title: eventName, description: props.eventType.description,