Skip to content

ToTimeZone throws error on Linux #2

@chrisg32

Description

@chrisg32

It appears that the DateTime.ToTimeZone extension method will error on Linux systems because TimeZoneInfo.GetSystemTimeZones() which is used in the implementation returns more than once value and the implementation is expecting one or none (SingleOrDefault).

Timezone string: Central Standard Time
OS: ubuntu-latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions