dmfs / lib-recur

A recurrence processor for Java
Apache License 2.0
199 stars 47 forks source link

define result of `BYHOUR`, `BYMINUTE` and `BYSECOND` with all-day start date #119

Open dmfs opened 1 year ago

dmfs commented 1 year ago

At present BYHOUR, BYMINUTE and BYSECOND can be used with all-day start date and the result is somewhat undefined. The lib should have a well defined behavior, either ignore or fail. The behavior may depend on the parser mode.

dmfs commented 1 year ago

RFC 5545 is actually quite clear about that:

 The BYSECOND, BYMINUTE and BYHOUR rule parts MUST NOT be specified
 when the associated "DTSTART" property has a DATE value type.
 These rule parts MUST be ignored in RECUR value that violate the
 above requirement (e.g., generated by applications that pre-date
 this revision of iCalendar).