sabre-io / vobject

:date: The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects
http://sabre.io/vobject/
BSD 3-Clause "New" or "Revised" License
569 stars 125 forks source link

RRULE with RDATE / EventIterator.php #700

Open munderl opened 1 week ago

munderl commented 1 week ago

I think there is a problem with the EventIterator.php. In rfc5545 it is described that a "RDATE" can occur inside a "RRULE". In such a case, the recurrence instances are defined by the union of occurrences defined by both the "RDATE" and "RRULE". In the current implementation, the "RRULE" is ignored completely when an additional "RDATE" is included in the "VEVENT". Therefore the EventIterator returns only the "RDATE" events and the original "RRULE" is lost.

munderl commented 6 days ago

Seems as somebody in 2016 already mentioned this: #347. I encountered such a vevent with RRULE and RDATE several times by now, so it seems to be used. Might be created by either thunderbird or DAVx^5.