When we try to parse an ics file which contains event with UID propterty only, it throws this error because it assumes that DTSTART must the defined.
Steps to Reproduce
Try to parse this ics file
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:W. Europe Standard Time
BEGIN:STANDARD
DTSTART:16010101T030000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER;CN=Organizer Name:mailto:organizer@example.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Attendee 1:mailto:attendee1@example.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Attendee 2:mailto:attendee2@example.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Attendee 3:mailto:attendee3@example.com
DESCRIPTION;LANGUAGE=en-GB:
Dear Team,
We look forward to the meeting on Monday. Please bring your questions so we can discuss them together. See you then! :)
Join Zoom Meeting
https://zoom.us/j/XXXXXXXXXXXX?pwd=XXXXXXXXXXXXX
Meeting ID: XXXXXXXXX
Passcode: XXXXXXX
One tap mobile
+1 646 931 3860,,XXXXXXXXX#,,,,*XXXXXXX# US
+1 669 444 9171,,XXXXXXXXX#,,,,*XXXXXXX# US
Find your local number: https://zoom.us/u/XXXXXXX
RRULE:FREQ=WEEKLY;UNTIL=20241007T080000Z;INTERVAL=2;BYDAY=MO;WKST=SU
SUMMARY;LANGUAGE=en-GB:Team Meeting
DTSTART;TZID=W. Europe Standard Time:20240923T100000
DTEND;TZID=W. Europe Standard Time:20240923T103000
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20241007T142056Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:7
LOCATION;LANGUAGE=en-GB:https://zoom.us/j/XXXXXXXXXXXX?pwd=XXXXXXXXXXXXX
X-MICROSOFT-CDO-APPT-SEQUENCE:7
X-MICROSOFT-CDO-BUSYSTATUS:TENTATIVE
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:1
X-MICROSOFT-RECURRENCETRUNCATED:TRUE
X-MICROSOFT-DONOTFORWARDMEETING:TRUE
X-MICROSOFT-DISALLOW-COUNTER:FALSE
X-MICROSOFT-REQUESTEDATTENDANCEMODE:DEFAULT
X-MICROSOFT-ISRESPONSEREQUESTED:TRUE
BEGIN:VALARM
DESCRIPTION:REMINDER
TRIGGER;RELATED=START:-PT15M
ACTION:DISPLAY
END:VALARM
END:VEVENT
BEGIN:VEVENT
UID:UniqueIDValueHere
END:VEVENT
END:VCALENDAR
PHP Version
8.1
PHP date.timezone
UTC
ICS Parser Version
3.4.1
Operating System
Mac/Linux
Description
When we try to parse an ics file which contains event with UID propterty only, it throws this error because it assumes that DTSTART must the defined.
Steps to Reproduce
Try to parse this ics file