You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However TZID=UTC is not allowed according to the specs: The "TZID" property parameter MUST NOT be applied to DATE properties and DATE-TIME or TIME properties whose time values are specified in UTC.
When this iCal export is passed to an iCal Validatior, it will fail with validation errors.
If I create the DateTime instace with $applyTimeZone = false:
$start = new \Eluceo\iCal\Domain\ValueObject\DateTime($startDate, false);
$end = new \Eluceo\iCal\Domain\ValueObject\DateTime($endDate, false);
This will create iCal without the "Z" suffix for UTC timestamps:
DTSTART:20220812T090000
DTEND:20220812T103000
Which results in wrong start and end times when imported into a calendar application.
I think the correct format shold look like this:
DTSTART:20220812T090000Z
DTEND:20220812T103000Z
Is there any option to get iCal properties like this?
Thank you!
The text was updated successfully, but these errors were encountered:
Rather than setting TZID=UTC, date times that are using UTC must end
with the Z letter.
Wrong: DTSTART;TZID=UTC:20220812T090000
Correct: DTSTART;20220812T090000Z
Fixes: #462Fixes: #263
Rather than setting TZID=UTC, date times that are using UTC must end
with the Z letter.
Wrong: DTSTART;TZID=UTC:20220812T090000
Correct: DTSTART;20220812T090000Z
Fixes: #462Fixes: #263
Code to reproduce:
This generates iCal that contains properties like this:
However
TZID=UTC
is not allowed according to the specs: The "TZID" property parameter MUST NOT be applied to DATE properties and DATE-TIME or TIME properties whose time values are specified in UTC.When this iCal export is passed to an iCal Validatior, it will fail with validation errors.
If I create the DateTime instace with $applyTimeZone = false:
This will create iCal without the "Z" suffix for UTC timestamps:
Which results in wrong start and end times when imported into a calendar application.
I think the correct format shold look like this:
Is there any option to get iCal properties like this?
Thank you!
The text was updated successfully, but these errors were encountered: