Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.TimeZoneNotFoundException issue in Blazor WASM #45844

Closed
VengateshManiraj opened this issue Dec 9, 2020 · 5 comments
Closed

System.TimeZoneNotFoundException issue in Blazor WASM #45844

VengateshManiraj opened this issue Dec 9, 2020 · 5 comments
Labels
arch-wasm WebAssembly architecture
Milestone

Comments

@VengateshManiraj
Copy link

Describe the bug

TimeZoneInfo is not found in Blazor WASM

To Reproduce

Create the WASM project.
Convert time with some specific timezone like the below code

TimeZoneInfo.ConvertTime(date, TimeZoneInfo.FindSystemTimeZoneById(timezone))

Exceptions

Error: System.TimeZoneNotFoundException: The time zone ID 'XXXX' was not found on the local computer.
---->System.IO.FileNotFoundException: Could not find file '/usr/share/zoneinfo/XXXX'.

Further technical details

  • VS Version 16.8.0 Preview 6.0
  • .NET SDK (reflecting any global.json):
    Version: 5.0.101
    Commit: d05174dc5a

Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.101\

Host (useful for support):
Version: 5.0.1
Commit: b02e13a

@pranavkm pranavkm transferred this issue from dotnet/aspnetcore Dec 9, 2020
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Dec 9, 2020
@Dotnet-GitSync-Bot
Copy link
Collaborator

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@radical radical added the arch-wasm WebAssembly architecture label Dec 9, 2020
@radical
Copy link
Member

radical commented Dec 9, 2020

/cc @lewing @tqiu8

@tqiu8
Copy link
Contributor

tqiu8 commented Dec 9, 2020

@VengateshManiraj what timezones are missing exactly?

@VengateshManiraj
Copy link
Author

@tqiu8 I couldn't find the Asia/Culcutta.

Comparing to the Server side app, the client-side app having 14 timezones only.

Server-side App:
TimeZoneInfo.GetSystemTimeZones() - 139 timezones.

Client-side App:
TimeZoneInfo.GetSystemTimeZones() - 14 timezones.

@lewing
Copy link
Member

lewing commented Dec 10, 2020

Ok asia/calcutta should be fixed by installing 5.0.1, the reduced list of timezones is tracked #44840

@lewing lewing closed this as completed Dec 10, 2020
@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Dec 10, 2020
@lewing lewing added this to the 6.0.0 milestone Dec 10, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture
Projects
None yet
Development

No branches or pull requests

5 participants