Skip to content

How to associate a timezone to an all-day event #717

Answered by minichma
RemcoBlok asked this question in Q&A
Discussion options

You must be logged in to vote

The differences between 24h vs 1d semantics have been addressed in #680. You can specify 24h (aka 'exact') semantics by specifying the duration via DTEND or via a time-only Duration (e.g. Duration.FromHours(24)). You can specify 1d (aka 'nominal') semantics via a date-only Duration (e.g. Duration.FromDays(1)).

Regarding DATE with TZID the RFC is quite clear in section 3.2.19:

The "TZID" property parameter MUST NOT be applied to DATE properties and DATE-TIME or TIME properties whose time values are specified in UTC.

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@minichma
Comment options

Answer selected by RemcoBlok
@RemcoBlok
Comment options

Comment options

You must be logged in to vote
9 replies
@minichma
Comment options

@bizinbarefeet
Comment options

@minichma
Comment options

@RemcoBlok
Comment options

@minichma
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants
Converted from issue

This discussion was converted from issue #716 on February 10, 2025 08:29.