-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix System.Text.Json tests affected by DST #66559
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json Issue DetailsFixes #66555 Does so by switching all remaining references to
|
Is there still test coverage that local DateTimes are handled correctly? |
The tests modified are just using them for a parameter, not for local/utc. |
...braries/System.Text.Json/tests/Common/ConstructorTests/ConstructorTests.ParameterMatching.cs
Outdated
Show resolved
Hide resolved
f91a887
to
5d8c5e4
Compare
The latest change seems to have broken the build. Could you take a look? |
@eiriktsarpalis - Sorry, my bad. |
Thanks for working on this! |
* Correct whitespace * Switch DateTime.Now -> DateTime.UtcNow * Tweak formatting * Change references to UtcNow to a fixed date/time value. * Add missing common file reference
Fixes #66555
Does so by switching all remaining references to
DateTime.Now
toDateTime.UtcNow
.