ical.net icon indicating copy to clipboard operation
ical.net copied to clipboard

Unrecognized time zone id Customized Time Zone

Open jakoss opened this issue 10 months ago • 13 comments

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
  1. 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

jakoss avatar Mar 06 '25 14:03 jakoss