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
{{ message }}
Repository navigation
JsonStringTests.TestDateTimeOffset test failure #31166
This test failed on my machine for dateTime: 0001-01-01T00:00:00.0000000Z:
<testname="System.Text.Json.Tests.JsonStringTests.TestDateTimeOffset(dateTime: 0001-01-01T00:00:00.0000000Z)"type="System.Text.Json.Tests.JsonStringTests"method="TestDateTimeOffset"time="0.0904563"result="Fail">
<failureexception-type="System.FormatException">
<message><![CDATA[System.FormatException : The UTC representation of the date '0001-01-01T00:00:00' falls outside the year range 1-9999.]]></message>
<stack-trace><![CDATA[ at System.DateTimeParse.ParseExact(ReadOnlySpan`1 s, ReadOnlySpan`1 format, DateTimeFormatInfo dtfi, DateTimeStyles style, TimeSpan& offset) in /_/src/System.Private.CoreLib/shared/System/Globalization/DateTimeParse.cs:line 46 at System.DateTimeOffset.ParseExact(String input, String format, IFormatProvider formatProvider, DateTimeStyles styles) in /_/src/System.Private.CoreLib/shared/System/DateTimeOffset.cs:line 542 at System.DateTimeOffset.ParseExact(String input, String format, IFormatProvider formatProvider) in /_/src/System.Private.CoreLib/shared/System/DateTimeOffset.cs:line 528 at System.Text.Json.Tests.JsonStringTests.TestDateTimeOffset(DateTime dateTime) in /home/tmds/repos/corefx/src/System.Text.Json/tests/JsonStringTests.cs:line 112]]></stack-trace>
</failure>
</test>
$ timedatectl
Local time: Mon 2019-10-21 10:46:09 CEST
Universal time: Mon 2019-10-21 08:46:09 UTC
RTC time: Mon 2019-10-21 10:46:09
Time zone: Europe/Paris (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: yes
Warning: The system is configured to read the RTC time in the local time zone.
This mode cannot be fully supported. It will create various problems
with time zone changes and daylight saving time adjustments. The RTC
time is never updated, it relies on external facilities to maintain it.
If at all possible, use RTC in UTC by calling
'timedatectl set-local-rtc 0'.
Activity
khellang commentedon Oct 15, 2019
Related to https://github.com/dotnet/corefx/issues/41706? 🤔
layomia commentedon Oct 18, 2019
@tmds can you please share your timezone/system settings in a format similar to https://github.com/dotnet/corefx/issues/39067#issuecomment-509393614?
khellang commentedon Oct 21, 2019
@layomia I'm getting the same locally:
tmds commentedon Oct 21, 2019