Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined array key "DTSTART" #343

Open
abdulsametsahin opened this issue Oct 7, 2024 · 0 comments
Open

Undefined array key "DTSTART" #343

abdulsametsahin opened this issue Oct 7, 2024 · 0 comments

Comments

@abdulsametsahin
Copy link

abdulsametsahin commented Oct 7, 2024

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

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:[email protected]
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Attendee 1:mailto:[email protected]
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Attendee 2:mailto:[email protected]
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Attendee 3:mailto:[email protected]
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant