otoxteam / web_ical

web_ical is an esay iCalendar Rust library. It’s goals are to read and write ics web files (Google Calendar, Airbnb Calendar and more) data in a developer-friendly way.
MIT License
15 stars 11 forks source link

How to specify an all-day event #8

Open tad-lispy opened 2 years ago

tad-lispy commented 2 years ago

Hey! Thanks for your work on web_ical and sharing it with us.

I'm trying to programmatically generate a calendar with some events being all-day, i.e. with only a date specified and without a time component. As far as I understand from the RFC5545 the way it should be serialized is the following.

DTSTART;VALUE=DATE:20220512
DTEND;VALUE=DATE:20220512

I've tested it with Proton Calendar and it works as expected. But how can I get an output like this from web_ical?