You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I do something like this for "New Zealand Standard Time"
var tz = TimeZoneService.FindSystemTimeZoneById("New Zealand Standard Time");
var gregorian = DateTimeOffset.Now;
gregorian = TimeZoneService.SpecifyTimeZone(gregorian, var);
I get an exception ArgumentOutOfRangeException
{"Year, Month, and Day parameters describe an un-representable DateTime."}
at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond, DateTimeKind kind)
at TimeZones.Internal.TimeZoneInfoEx.FromSystemTime(SYSTEMTIME systemTime)
at TimeZones.Internal.TimeZoneInfoEx.IsDaylightTime(DateTime date, TIME_ZONE_INFORMATION& tzi)
at TimeZones.Internal.TimeZoneInfoEx.ConvertTime(DateTimeOffset dateTimeOffset)
at TimeZones.TimeZoneService.TimeZoneEx.ConvertTime(DateTimeOffset dateTimeOffset)
at TimeZones.TimeZoneService.SpecifyTimeZone(DateTimeOffset dateTimeOffset, ITimeZoneEx timeZone)
Running on Windows 10 as a Windows 8.1 app.
The text was updated successfully, but these errors were encountered:
If I do something like this for "New Zealand Standard Time"
I get an exception ArgumentOutOfRangeException
Running on Windows 10 as a Windows 8.1 app.
The text was updated successfully, but these errors were encountered: