Milestone v1.0: FamilySync MVP #1
@@ -209,8 +209,13 @@ export function expandOccurrences(
|
|||||||
const allDay: boolean = dtstart.isDate
|
const allDay: boolean = dtstart.isDate
|
||||||
const uid: string = event.uid ?? ''
|
const uid: string = event.uid ?? ''
|
||||||
|
|
||||||
const rangeStart = ICAL.Time.fromJSDate(windowStart, false)
|
// useUTC=true: windowStart/windowEnd are absolute instants (midnight-UTC of the
|
||||||
const rangeEnd = ICAL.Time.fromJSDate(windowEnd, false)
|
// requested dates). Interpreting them in UTC keeps the occurrence-window comparison
|
||||||
|
// absolute. With useUTC=false ical.js used the SERVER's local timezone, shifting the
|
||||||
|
// window by the server's offset and dropping evening occurrences near the window end
|
||||||
|
// (e.g. a 17:45-04:00 event = 21:45Z fell past a day window whose end was shifted to 20:00).
|
||||||
|
const rangeStart = ICAL.Time.fromJSDate(windowStart, true)
|
||||||
|
const rangeEnd = ICAL.Time.fromJSDate(windowEnd, true)
|
||||||
|
|
||||||
const occurrences: CalendarOccurrence[] = []
|
const occurrences: CalendarOccurrence[] = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user