Skip to content

TimeZoneInfo.GetSystemTimeZones produces unexpected results in Blazor WASM for .NET 5 #44840

@andersme

Description

@andersme

Describe the bug

When using TimeZoneInfo.GetSystemTimeZones method in Blazor WASM on .NET 5, I am getting a strange list returned.

image

  • The list is much shorter than I would expect, and appears to be missing many time zones. I even show, in my example, my current time zone, which is missing from the list.
  • The display names are not very good and not something I would want to show an end user.

Is there any other method to return all available time zones that I am not aware of?

To Reproduce

Use TimeZoneInfo.GetSystemTimeZones inside of a Blazor WASM page with .NET 5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions