Skip to content

ToTimeZone throws error on Linux #2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions