-
Notifications
You must be signed in to change notification settings - Fork 231
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
RecurrencePattern.Until DateTime property should be a CalDateTime #588
Comments
Similarly the EXDATE also does not serialize a TZID. See #614 |
The way I read the standard, UNTIL must have the same value type as DTSTART. If DTSTART is a DATE, then UNTIL must be a DATE. If DTSTART is a DATE-TIME, then UNTIL must be a DATE-TIME. Oddly, when DTSTART specifies a TZID, UNTIL must be in UTC, and not in the TZID of DTSTART. See https://icalendar.org/iCalendar-RFC-5545/3-3-10-recurrence-rule.html. "If the DTSTART property is specified as a date with UTC time or a date with local time and time zone reference, then the UNTIL rule part MUST be specified as a date with UTC time" It does not say the same thing about EXDATE having to be in UTC by the way, which is nice and consistent. See https://icalendar.org/iCalendar-RFC-5545/3-8-5-1-exception-date-times.html. For EXDATE you must be able to specify a TZID. |
I agree that |
Agree - now what does it mean in code? Only use UTC without implementing a floating time representation? ical.net/Ical.Net/DataTypes/RecurrencePattern.cs Lines 30 to 42 in e76da82
|
Yes, I think this would be great! |
iCalendar spec says that the UNTIL format should match the same format as DTSTART. And if DTSTART specifies a TZID then the UNTIL should as well.
Because UNTIL is just a DateTime, there is no way to specify the timezone that should be applied the property.
So serialization of a recurrence comes out incorrectly.
Example:
BEGIN:VEVENT
DTEND;TZID=Central Standard Time:20190208T133000
DTSTAMP:20240702T173339Z
DTSTART;TZID=Central Standard Time:20190208T130000
RRULE:FREQ=DAILY;UNTIL=20190215T130000;WKST=SU
SEQUENCE:0
SUMMARY:Intro 1 : Recurring Appointment
UID:1
END:VEVENT
Notice that UNTIL has no TZID identifier applied. This is against spec.
The text was updated successfully, but these errors were encountered: