Open roberthartung opened 8 years ago
Addition: It looks like a problem with the timezone. The exDate is correctly in timezone 'Z' with utcOffset 0. In contrast, the startDate
I get from the iterator for the occurence details object is 10:00:00 with utcOffset 0 and tz 'floating' which is obviously wrong!
Does it work correctly when using UTC as the timezone? I won't have immediate time to look into this. Can you create a minimal testcase I can paste into http://jsfiddle.net/kewisch/227efboL/ ?
I made a wrapper for ical.js that solves this problem: https://github.com/mifi/ical-expander
@mifi Nice thank you. The problem is not easily solved within ical.js since it does not know standard timezones.
It seems that EXDATE
is not considered in ical.js
at all, I was not even able to find this information in the event properties.
I had to use https://github.com/mifi/ical-expander at the end and it worked like a charm.
ics file:
Code:
it.exDate
is undefined after the date that should be excluded, but I still see it through the iterator.In
lib/ical/recur_expansion.js:267
you compare the EXDATE to "last". Last points at the end of the event (10am), but the EXDATE points to the start (8am).