Skip to content

All Day Events #55

@jpincas

Description

@jpincas

Thanks so much for this package - you've saved me hours!

Just wanted to report on my findings while trying to work out how to output an 'all day event'. 99% this is down to me not knowing how to use iCal spec/this package, but just wanted to make some notes/ask a question.

From inspecting other feeds that were showing all day events correctly, it looked like the structure needed to be:

DTSTART;VALUE=DATE:20201101

To get that output I had to bypass the helper functions, format the date manually with a copy of your 'icalDateFormatLocal' (otherwise the Z at the end caused the event not to display) and manually specify the DATE value.

event.SetProperty(ics.ComponentPropertyDtStart, t.Start.UTC().Format(icalDateFormatLocal), ics.WithValue("DATE"))

I imagine that I'm missing a much easier way to do this, but couldn't find it to save my life.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions