-
Notifications
You must be signed in to change notification settings - Fork 248
Open
Labels
Description
Describe the bug
I'm trying to parse attached ics file, but i have an error: Unrecognized time zone id Customized Time Zone.
I'm pretty sure that the entries with this Customized Time Zone are entries created by accepting invitation from Google Meet from outlook application.
To Reproduce
Try to parse attached file
var calendarString = File.ReadAllText(@"<your path>\calendar.ics");
var calendar = Calendar.Load(calendarString);
var occurrences = calendar.GetOccurrences(DateTime.UtcNow, DateTime.UtcNow).ToList(); // crashes here- iCalendar Data
Attached in file calendar.zip
Expected behavior
I know there is no "proper" solution to handle this, but for now the only thing i can do is to do enumeration manually and handle the exception there which is not ideal. I'd love to have some solution, maybe just skip such entries but return everything else?
Environment (please complete the following information):
- OS: Windows 11
- .NET version: .NET 8
- ical.net version: 5.0.0-pre.41