- Issue created by @acbramley
- Merge request !38RlHelper::generateOccurrences can yield occurrendes before $rangeStart → (Closed) created by acbramley
- last update
over 1 year ago 147 pass, 1 fail - Status changed to Closed: works as designed
over 1 year ago 10:40am 13 November 2023 - 🇦🇺Australia dpi Perth, Australia
The occurrences generated by
\Drupal\date_recur\Rl\RlHelper::generateOccurrences
merely need to intersect the start or end date. If both points precede start, or both points are after the range, then they are not produced.In your example, occurrenceEnd is before rangeEnd, so it is allowed. It doesnt matter that occurrenceStart is before rangeStart.
The assertion "Test in range (intersects occurrence start)." in
\Drupal\Tests\date_recur\Unit\DateRecurRlHelperUnitTest::testOccurrence
, etc prove that. - 🇦🇺Australia dpi Perth, Australia
Since this is related to the opening hours → project, its likely somewhere does not include a trim [to range] and filter (0 second length occurrences).