peterbraden/ical.js

No way to tell if an event is an all day event

sorenisanerd opened this issue · 1 comments

ical.js correctly handles it when e.g. DTSTART only has a date part, but once parsed, there's no way to tell if this is an all-day event or of it's simply a 24*n hour event that starts at 0000 UTC.

I was able to achieve this by looking for the dateOnly property on the object.

event.start.hasOwnProperty('dateOnly')

If event.start has the property, then it is an allDay event, else it is not.