-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Blazor WASM .NET 5 TimeZoneInfo DaylightName values not correct #45136
Comments
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. |
Tagging subscribers to this area: @tarekgh, @safern, @krwq Issue DetailsDescriptionUsing Blazor WASM with .NET 5, the information in Actual Behavior:
produces Expected Behavior:
This may be partially related to #44840 Configuration
Regression?This is a regression from Blazor WASM 3.2, which produces this result Other information
|
/cc @lewing |
@tqiu8 can you test the example on unix as well and make sure all the other issues are already tracked/resolved |
Just curious, do we have tests for this? |
I just searched for that and it seems like we don't for WASM, the one we have uses |
Looks like there is some crossover here with #16232 ? |
Yea it looks like the DaylightName and StandardName are the same in unix. Also the display name is basically of the format |
I think we've found the issue with DaylightName and a fix is in progress. The StandardName/DisplayName commonality is #16232 |
@lewing how did we use to get the display name in 3.2? did we carry the data back then? |
@tarekgh I haven't verified the code but 3.2 Wasm used the mono/mono bcl with different timezone code which likely carried this data with it for compatibility with windows. I can double check next week. |
Description
Using Blazor WASM with .NET 5, the information in
TimeZoneInfo.DaylightName
is incorrect and appears to mirror theTimeZoneInfo.StandardName
.Actual Behavior:
TimeZoneInfo.DaylightName
is identical toTimeZoneInfo.StandardName
.For example using this code
produces
Expected Behavior:
TimeZoneInfo.DaylightName
is different (and correct) for time zones that support daylight saving time.For example, in a .NET 5 console application the same values look like this:
Pacific Standard time in a .NET 5 console app shows that the
StandardName
is "Pacific Standard Time" and theDaylightName
is "Pacific Daylight Time"This may be partially related to #44840
Configuration
Regression?
This is a regression from Blazor WASM 3.2, which produces this result
Other information
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
I can only get 14 time zones to display, and they are seemingly random.The text was updated successfully, but these errors were encountered: