ical.net
ical.net copied to clipboard
Incorrect timezone calculation if short recurrence falls into an ambiguous local time
Describe the bug In case of a DST change it can happen that the end time of an occurrence is after the start time in UTC but before in local time. In this case incorrectly an exception is raised.
To Reproduce
Enumerate the following VEVENT
DTSTART;TZID=Europe/Vienna:20201025T023000
DURATION:PT45M
The expected outcome would be 20201025T023000/PT45M but actually an exception is raised:
System.ArgumentException : End time (10/25/2020 02:15:00 +02:00 Europe/Vienna) must be greater than start time (10/25/2020 02:30:00 +02:00 Europe/Vienna). (Parameter 'end')
Environment (please complete the following information):
- ical.net version: 5.0.0-pre.41