Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sorenisanerd opened this issue Aug 31, 2019 · 1 comment
Open

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

sorenisanerd opened this issue Aug 31, 2019 · 1 comment

Comments

@sorenisanerd
Copy link

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.

@skylerknight
Copy link

skylerknight commented Sep 20, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants