freaktechnik / twitch-events-ical

Generate iCals for Twitch Events
https://twitch-events-ical.herokuapp.com/
MIT License
10 stars 4 forks source link

Apple's Calendar doesn't support the date format used #23

Closed BasO closed 5 years ago

BasO commented 5 years ago

The DTSTART and DTEND values are currently formatted as, e.g., 2019-01-14T19:30:00.000Z

Apple Calendar doesn't support this format, thus no events show up in the calendar subscription, and the events can't be imported. It appears that the format 20190114T193000 does work (leaving out the interpunction and the trailing .000Z).

freaktechnik commented 5 years ago

From what I understand DTSTART:2019-01-15T23:00:00.000Z etc. is pretty standard iCal dates. I'd love to see what apple actually supports.

BasO commented 5 years ago

Sorry, posted too early on accident. Not an expert in iCal so I did a lot of trial and error, and when I change the DTSTART and DTEND values to the format of 20190114T193000 (no interpunction and no trailing .000Z) the events are correctly imported.

freaktechnik commented 5 years ago

The problem with not having the "Z" is that some clients will interpret the date with the wrong timezone. The miliseconds should indeed not be required, I'll look into that.

BasO commented 5 years ago

Turns out the Z can be used for Apple Calendar as well (e.g. 20190114T193000Z).