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
It appears that the
DateTime.ToTimeZoneextension method will error on Linux systems becauseTimeZoneInfo.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 TimeOS:
ubuntu-latest