u01jmg3 / ics-parser

Parser for iCalendar Events • PHP 8+, 7 (≥ 7.4), 5 (≥ 5.6)
MIT License
450 stars 144 forks source link

Yearly not working #282

Closed craCH closed 2 years ago

craCH commented 3 years ago

The following example shows the event every month at the 14th:

BEGIN:VEVENT DTSTART;VALUE=DATE:20200214 DTEND;VALUE=DATE:20200215 RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTHDAY=14 DTSTAMP:20210307T210302Z UID:cgo3ee1lcgsjgb9n6kp30b9k71ijib9ockqj2b9pc5i3gdb168qjechk6k@google.com CREATED:20200216T100459Z DESCRIPTION: LAST-MODIFIED:20200216T100459Z LOCATION: SEQUENCE:1 STATUS:TENTATIVE SUMMARY:Geburtstag Monika TRANSP:TRANSPARENT END:VEVENT

s0600204 commented 3 years ago

The [...] example shows the event every month at the 14th

Yes, yes it does: this would be the expected output for that RRULE.

If you only wish it to repeat on February 14, either remove the BYMONTHDAY stanza or add BYMONTH=2.

If you are expecting a different output with that RRULE, please state what you expect.

craCH commented 3 years ago

This is the standard ics output from Google Calendar. So I can't change it.

u01jmg3 commented 3 years ago

Google Calendar does provide recurrence options for repeating events: https://support.google.com/calendar/answer/37115

u01jmg3 commented 2 years ago

Closing due to a lack of activity