Skip to content

Conversation

@pranavkm
Copy link
Contributor

@pranavkm pranavkm commented Nov 3, 2020

Description

Browsers may not correctly resolve the machine's timezone in some cases. In the current implementation,
this results in an exception being thrown by .NET Core (WASM). This code defaults the timezone to UTC
when the timezone cannot be resolved.

Fixes dotnet/runtime#44154
Port of #27444

Customer impact

Blazor WASM applications may not start on some browsers that do not correctly resolve timezone information

Regression

No.

Risk

We default the app to using UTC timezone which makes it a fairly low risk change. This does not affect browsers / apps where timezones can be correctly resolved which is the majority of our users.

@pranavkm pranavkm requested review from a team and SteveSandersonMS as code owners November 3, 2020 21:44
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Nov 3, 2020
@mkArtakMSFT mkArtakMSFT added the Servicing-consider Shiproom approval is required for the issue label Nov 5, 2020
@ghost
Copy link

ghost commented Nov 5, 2020

Hello human! Please make sure you've included the Shiproom Template in a comment or (preferably) the PR description. Also, make sure this PR is not marked as a draft and is ready-to-merge.

@mkArtakMSFT mkArtakMSFT added this to the 5.0.1 milestone Nov 5, 2020
Copy link
Contributor

@mkArtakMSFT mkArtakMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@leecow leecow added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Nov 12, 2020
@wtgodbe
Copy link
Member

wtgodbe commented Nov 19, 2020

@pranavkm can you resolve the conflicts?

@wtgodbe
Copy link
Member

wtgodbe commented Nov 19, 2020

@mkArtakMSFT is there someone from @dotnet/aspnet-blazor-eng who can work on the conflicts here?

Browsers may not correctly resolve the machine's timezone in some cases. In the current implementation,
this results in an exception being thrown by .NET Core (WASM). This code defaults the timezone to UTC
when the timezone cannot be resolved.

Fixes dotnet/runtime#44154
Port of #27444
@pranavkm pranavkm force-pushed the prkrishn/undefined-tz branch from 89dd4b0 to 63b0568 Compare November 19, 2020 21:53
@pranavkm
Copy link
Contributor Author

🆙 📅

@mkArtakMSFT mkArtakMSFT merged commit 26c2891 into release/5.0 Nov 21, 2020
@mkArtakMSFT mkArtakMSFT deleted the prkrishn/undefined-tz branch November 21, 2020 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components Servicing-approved Shiproom has approved the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants