Skip to content

[iOS] TimeZoneInfo.FindSystemTimeZoneById throws TimeZoneNotFoundException on iOS but works on Windows and Android #115994

@DulanyaPerera

Description

@DulanyaPerera

Description

When using TimeZoneInfo.FindSystemTimeZoneById in a .NET MAUI app, the method throws a TimeZoneNotFoundException on iOS for valid timezone IDs like "Eastern Standard Time" and "US Mountain Standard Time", even though the same code works correctly on Windows and Android.

Steps to Reproduce

Steps to reproduce

  1. Create a new .NET MAUI app.
  2. Add the following code in a shared C# context:
    var tz = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
  3. Run the app on an iOS device or simulator.

Expected Behavior

The method should return the correct 'TimeZoneInfo' object on all platforms, including iOS.

Actual Behavior

System.TimeZoneNotFoundException:

Link to public reproduction project repository

No response

Version with bug

10.0.0-preview.4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions