This repository was archived by the owner on Dec 24, 2022. It is now read-only.
Commit 5a7ae04
JsonSerializer/JsvTypeSerializer inconsistently uses the AssumeUtc config setting (#505)
DateTime handling is inconsistent with respect to the AssumcUtc when using the JSConfig setting.
If serializing to JSON - The JsonTypeSerializer will use the UTC specification type and convert Unspecified DateTime values to UTC in method "WriteWcfJsonDate"
If serializing to CSV- The JsvTypeSerializer will not use the UTC specification type and does not convert Unspecified DateTime values to UTC in method "ToShortestXsdDateTimeString"
Adding an internal extension method "UseConfigSpecifiedSetting" to match DateTime conversion between the two different serializers.1 parent a87c874 commit 5a7ae04
File tree
2 files changed
+30
-2
lines changed- src/ServiceStack.Text/Common
- tests/ServiceStack.Text.Tests/JsonTests
2 files changed
+30
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
| |||
582 | 583 | | |
583 | 584 | | |
584 | 585 | | |
585 | | - | |
| 586 | + | |
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
589 | | - | |
| 590 | + | |
590 | 591 | | |
| 592 | + | |
| 593 | + | |
591 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
592 | 598 | | |
593 | 599 | | |
594 | 600 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
312 | 334 | | |
313 | 335 | | |
314 | 336 | | |
| |||
0 commit comments