Skip to content

[Breaking change]: Changing DateTimeKind of value which return System.Management.ToDateTime(string) from Unspecified to Local #36651

Description

@Maximys

Description

Documentation of ManagementDateTimeConverter.ToDateTime(String) contains next text:

The returned DateTime will be in the current time zone of the system.

which mean, that DateTime.Kind property should be set to DateTimeKind.Local, but currently value of this property is DateTimeKind.Unspecified.

Version

.NET 8 RC 1

Previous behavior

Currently value of DateTime.Kind property is DateTimeKind.Unspecified

New behavior

Value of DateTime.Kind property should be set to DateTimeKind.Local

Type of breaking change

  • Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load or execute, and if so, require recompilation.
  • Source incompatible: When recompiled using the new SDK or component or to target the new runtime, existing source code may require source changes to compile successfully.
  • Behavioral change: Existing binaries may behave differently at run time.

Reason for change

Code should match documentation

Recommended action

Feature area

Windows Forms

Affected APIs

No response


Associated WorkItem - 166834

Activity

  1. gewarren commented on Aug 11, 2023

    @gewarren
    Collaborator

    @tarekgh Is this a .NET Framework -> .NET Core (1.0) breaking change?

  2. tarekgh commented on Aug 11, 2023

    @tarekgh
    Member

    This is a breaking change in the following cases:
    NETFX -> .NET 8.0
    .NET Core 1 ~ .NET 7 -> .NET 8.0

  3. added
    📌 seQUESTeredIdentifies that an issue has been imported into Quest.
    and removed
    🗺️ reQUESTTriggers an issue to be imported into Quest.
    on Oct 3, 2023
  4. moved this from 🔖 Ready to 🏗 In progress in dotnet/docs October 2023 sprinton Oct 5, 2023
  5. ghost added
    in-prThis issue will be closed (fixed) by an active pull request.
    on Oct 5, 2023
  6. moved this from 🏗 In progress to 👀 In review in dotnet/docs October 2023 sprinton Oct 5, 2023
  7. ghost removed
    in-prThis issue will be closed (fixed) by an active pull request.
    on Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.breaking-changeIndicates a .NET Core breaking change

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions