OzzyCzech / icalparser

Simple ical parser for PHP
https://ozana.cz
BSD 3-Clause "New" or "Revised" License
59 stars 22 forks source link

Recurring events not working correctly #75

Open MrUpsidown opened 5 months ago

MrUpsidown commented 5 months ago

I don't know if this library is still maintained but I'll post here anyway.

I have a recurring event that occurs weekly, every Tuesday and Thursday.

BEGIN:VEVENT
DESCRIPTION:XXX-REDACTED
RRULE:FREQ=WEEKLY;UNTIL=20250604T220000Z;INTERVAL=1;BYDAY=TU,TH;WKST=MO
UID:040000008200E00074C5B7101A82E00800000000E07AF34F937EDA01000000000000000
 01000000061F3E918C753424E8154B36E55452933
SUMMARY:XXX-REDACTED
DTSTART;VALUE=DATE:20240326
DTEND;VALUE=DATE:20240327
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20240605T082436Z
TRANSP:TRANSPARENT
STATUS:CONFIRMED
SEQUENCE:0
LOCATION:
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-BUSYSTATUS:FREE
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:1
X-MICROSOFT-DONOTFORWARDMEETING:FALSE
X-MICROSOFT-DISALLOW-COUNTER:FALSE
X-MICROSOFT-REQUESTEDATTENDANCEMODE:DEFAULT
X-MICROSOFT-ISRESPONSEREQUESTED:FALSE
END:VEVENT

The rule says WEEKLY UNTIL=2025/06/04 with INTERVAL=1 and BYDAY=TU,TH;

But the getEvents() only returns the event every Tuesday, not on Thursdays.

FYI, the ICS is generated by Office 365.