-
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
Switch DateTimeKind from Unspecified to Local #90149
Switch DateTimeKind from Unspecified to Local #90149
Conversation
Tagging subscribers to this area: @dotnet/area-system-management |
@ericstj, could you look to current PR and failed test System.Management.Tests.ManagementDateTimeConverterTests.DateTime_MinValue_RoundTrip? |
That test cannot expect the behavior to change on .NETFramework - since we don't build
Yes, that's correct. So you'd need to make this test expect different behavior on .NETFramework. @tarekgh @dotnet/area-system-management do you see a problem with this bug being fixed here? |
I expressed in my old comment #30128 (comment) that the behavior is not matching the docs which expect the fixed behavior. So, I am fine with the fix but I prefer filing a breaking change issue for this one https://github.com/dotnet/docs/issues/new?assignees=gewarren&labels=breaking-change%2CPri1%2Cdoc-idea&projects=&template=breaking-change.yml&title=%5BBreaking+change%5D%3A+.
Correct, the test is already failing and should be fixed to return different result on NETFX. https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-90149-merge-039e8e43d9964292b0/System.Management.Tests/1/console.7246bcff.log?helixlogtype=result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
079948c
to
59e5892
Compare
@Maximys thanks a lot for your response and opening the breaking change tracking. Would it make sense to not skip the test on the NETFX and instead validate the expected value there? you can use runtime/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Windows.cs Line 21 in 376e235
|
…entDateTimeConverter.ToDateTime(string) of NetFX.
@tarekgh , I had fixed highlighted problem, but there are some unrelated test failures. Could you look please? |
I tracked the failed test with #90521 |
Fix #30128