Fondation

This commit is contained in:
alma 2026-01-17 00:24:14 +01:00
parent 86b40479c7
commit c0af54eff5

View File

@ -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,