Fix issue 3393 (#3395)

Fix for #3393
This commit is contained in:
jkriegshauser
2024-03-13 12:59:21 -07:00
committed by GitHub
parent 90ff3402cb
commit 1a745cfb92
5 changed files with 77 additions and 0 deletions

View File

@@ -311,6 +311,12 @@ const CalendarFetcherUtils = {
arr[index] = new Date(date.valueOf() + oneDayInMs);
}
});
// Adjusting the dates could push it beyond the 'until' date, so filter those out here.
if (rule.options.until !== null) {
dates = dates.filter((date) => {
return date.valueOf() <= rule.options.until.valueOf();
});
}
}
// The dates array from rrule can be confused by DST. If the event was created during DST and we