eouia / MMM-CalendarExt

Calendar views for MagicMirror
MIT License
57 stars 18 forks source link

Timezone with quotes - DTSTART / DTEND #68

Closed mesomorf1 closed 4 years ago

mesomorf1 commented 5 years ago

My Exchange server generates the ics and uses quotes (") for the timezone that I use (here in Sweden) and that seams to be a problem in your Calendar module (works with other MM2 calendar modules)

The problem is that it does not show the appointment unless I select another timezone that does not get quoted. And UTC universial time seams to be the only one not quoted for me.

Example how it looks with quotes (not working):

DTSTART;TZID="(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien":2019 0924T130000 DTEND;TZID="(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien":201909 24T133000

..so this works (gets generated without quotes, but wrong timezone for me): DTSTART;TZID=(UTC) Koordinerad universell tid:20190925T080000 DTEND;TZID=(UTC) Koordinerad universell tid:20190925T083000


Complete .ics attached here: MyTest.ics.txt

eouia commented 5 years ago

Sorry for the late reply. I had not enough time to inspect this issue. Your ics looks like not standard format. As my test, yours doesn't work in the default calendar module also. Frankly said this module is using the same parser with the default calendar module of MM. So if mine couldn't parse, the default will be same.

Anyway, you can use MMM-CalendarExt2. It is using a new / better parser (I think. :D) and it could parse your ics.

image I've changed the date to test

DTSTART;TZID="(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien":20191024T130000
DTEND;TZID="(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien":20191024T133000
eouia commented 4 years ago

No plan to fix this issue, because it is caused by invalid ical format. So I'll close this issue.