Fixes #266: ICS event is off by one month
This commit is contained in:
1 parent
49cb191254
commit
dbd1721405
2 files changed
+2
-2
No files matched your search
@@ -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}`,
|
||||
|
||||
Reference in new issue
Block a user