From c0af54eff5f4400e41ebe0625a2950aa28f5067e Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 17 Jan 2026 00:24:14 +0100 Subject: [PATCH] Fondation --- components/calendar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/calendar.tsx b/components/calendar.tsx index 42614c3..2c19150 100644 --- a/components/calendar.tsx +++ b/components/calendar.tsx @@ -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,