ical-org / ical.net

ical.net - an open source iCal library for .Net
Other
791 stars 231 forks source link

Recurrence issue in weekly #409

Closed nketha closed 6 years ago

nketha commented 6 years ago

Recurrence issue in weekly

I have an event created on 2018-07-17 (on a Tuesday with a recurrence, "FREQ=WEEKLY;BYDAY=TU,TH,SA". The recurrence rule excludes the day when I created the event on, because it's not on WE, FR or SU. image image My Scenarios show in attached screen shot

My question is: why adding one day for the selected dates

Fuzzillogic commented 6 years ago

I can confirm the behavior. However, the spec states:

The "DTSTART" property defines the first instance in the recurrence set.

So, it actually seems correct to me.

The way clients handle this differs. Kendo ignores the event on the DTSTART, if it doesn't match the RRULE. So does Outlook, but it mentions "Occurs every effective ". KDE's Kontact forces the RRULE to include DTSTART, thus in the example above, it would auto-select Wednesday, which then can't be deselected.

Fuzzillogic commented 6 years ago

Ohh I was looking at the old and obsolete RFC 2445. As mentioned in #407, the current RFC 5545, which ical.NET supports, says the behavior in this case is "undefined".

nketha commented 6 years ago

Ok thank so much.