Open epeshk opened 6 years ago
Serialization of TimeSpan that respresent interval less than 100 milliseconds gives wrong result.
var ts = TimeSpan.FromMilliseconds(99); Console.WriteLine(Utf8Json.JsonSerializer.ToJsonString(ts));
Expected: "00:00:00.0990000" Actual: "00:00:00.990000" (990 ms, not 99)
"00:00:00.0990000"
"00:00:00.990000"
this problem can be temporarily fixed in user app with following code:
CompositeResolver.RegisterAndSetAsDefault( new[]{new TimeSpanFormatter()}, new[]{StandardResolver.Default});
This issue maybe related to https://github.com/neuecc/Utf8Json/issues/80
PR: https://github.com/neuecc/Utf8Json/pull/101
Serialization of TimeSpan that respresent interval less than 100 milliseconds gives wrong result.
Expected:
"00:00:00.0990000"
Actual:"00:00:00.990000"
(990 ms, not 99)this problem can be temporarily fixed in user app with following code:
This issue maybe related to https://github.com/neuecc/Utf8Json/issues/80