Open ditchcode opened 6 months ago
Seems to me RecurringEventsHelper _GetOccurrences should not be testing this:
if (tmp.start_date < toDate && tmp.end_date > fromDate)
and skipping instances that do not match.
But should instead be testing the original DateTime stored as a Unix timestamp in event_length against toDate and fromDate to see if it falls inside the range and thus should be applied to correct any SeriesInfo occurrences that is covers. And then if tmp.start_time and tmp.end_time falls outside that From-To range, it should be filtered from the results.