fix: create all-day calendar events with JSCalendar midnight start and full fetch verification

This commit is contained in:
Linus Rath
2026-03-27 18:51:34 +01:00
parent b868ad591d
commit f084b484b7
5 changed files with 180 additions and 13 deletions
+5 -1
View File
@@ -92,9 +92,13 @@ export function sanitizeOutgoingCalendarEventData<T extends Partial<CalendarEven
return normalized;
}
const normalizedStart = normalized.start
? `${normalized.start.slice(0, 10)}T00:00:00`
: normalized.start;
return {
...normalized,
start: normalized.start ? normalized.start.slice(0, 10) : normalized.start,
start: normalizedStart,
duration: normalizeAllDayDurationValue(normalized.duration),
timeZone: null,
} as T;