Skip to content

Unrecognized time zone id Customized Time Zone #749

@jakoss

Description

@jakoss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions