Hello,
I would like to interface Zoom announcements to my homemade Perl web calendar. People send me zoom announcements, and there is an option to download a .ics ( iCalendar ) file. OK, I figured I'd shoot it off to a script which would parse it and update my calendar's SQL database.
HOWEVER, the files seem to be invalid.
-------------------- snip -------------------
BEGIN:VCALENDAR
PRODID:-//zoom.us//iCalendar Event//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
CLASS:PUBLIC
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
TZURL:http://tzurl.org/zoneinfo-outlook/America/Los_Angeles
X-LIC-LOCATION:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE
END:VCALENDAR
--------------------------------- endsnip ------------------------------------
First of all, there are no “VEVENT” lines. Each event is supposed to be packaged inside a
“BEGIN:VEVENT” and “END:VEVENT” pair. That can be worked around - I could just assume there’s
exactly one event and snarf out the lines that are related to events.
A more serious problem - the dates are wrong:
“DTSTART:19700308T020000” means - something that starts on the 8th of March, 1970. At, I think Two in the morning.
…and there’s a second DTSTART:
DTSTART:19701101T020000 - The first of November, 1970.
I’m not sure if these files are produced by Zoom at all. Maybe my sender is using some other tool?
Also, I am by no means an iCal expert. I just started reading RFC5545 yesterday.