Fondation
This commit is contained in:
parent
86b40479c7
commit
c0af54eff5
@ -122,8 +122,8 @@ export function Calendar() {
|
||||
const eventsForNotification = upcomingEvents.map((evt: Event) => ({
|
||||
id: evt.id,
|
||||
title: evt.title,
|
||||
start: evt.start instanceof Date ? evt.start : new Date(evt.start),
|
||||
end: evt.end instanceof Date ? evt.end : new Date(evt.end),
|
||||
start: typeof evt.start === 'string' ? new Date(evt.start) : evt.start,
|
||||
end: typeof evt.end === 'string' ? new Date(evt.end) : evt.end,
|
||||
isAllDay: evt.allDay,
|
||||
calendarName: evt.calendar,
|
||||
calendarColor: evt.calendarColor,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user