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
Copy file name to clipboardExpand all lines: docs/UnitTest.md
+2-11Lines changed: 2 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,6 @@
11
11
```
12
12
Expected: 08/01/2011 21:25:00 +00:00
13
13
But was: 08/01/2011 21:25:00 +09:00
14
-
---
15
-
at Newtonsoft.Json.Tests.JsonTextReaderTest.ReadAsDateTimeOffsetIsoDate () [0x00085] in .\src\Newtonsoft.Json.Tests\JsonTextReaderTest.cs:2354
16
14
```
17
15
18
16
### DateTimeOffset cannot parse formatted string well
@@ -24,18 +22,11 @@ Expected string length 40 but was 32. Strings differ at index 1.
24
22
Expected: ""Friday, 15 December 2000 10:11:03 p.m.""
25
23
But was: ""15 December 2000 10:11:03 p.m.""
26
24
------------^
27
-
---
28
-
at Newtonsoft.Json.Tests.Converters.IsoDateTimeConverterTests.SerializeFormattedDateTimeNewZealandCulture () [0x00070] in .\src\Newtonsoft.Json.Tests\Converters\IsoDateTimeConverterTests.cs:143
29
25
```
30
26
31
27
##### DateFormatStringWithDateTimeOffset
32
28
33
29
```
34
-
Newtonsoft.Json.JsonReaderException : Could not convert string to DateTimeOffset: 2000-pie-Dec-Friday-22. Path '', line 1, position 24.
35
-
---
36
-
at Newtonsoft.Json.JsonReader.ReadDateTimeOffsetString (System.String s) [0x0007d] in .\src\Newtonsoft.Json\JsonReader.cs:875
37
-
at Newtonsoft.Json.JsonTextReader.ReadStringValue (ReadType readType) [0x001c7] in .\src\Newtonsoft.Json\JsonTextReader.cs:595
38
-
at Newtonsoft.Json.JsonTextReader.ReadAsDateTimeOffset () [0x00000] in .\src\Newtonsoft.Json\JsonTextReader.cs:929
39
-
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00089] in .\src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:2250
40
-
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00021] in .\src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:149
30
+
Newtonsoft.Json.JsonReaderException : Could not convert string to DateTimeOffset:
31
+
2000-pie-Dec-Friday-22. Path '', line 1, position 24.
0 commit comments