-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.
Description
Type of issue
Typo
Description
Both UnixEpochDateTimeOffsetConverter and UnixEpochDateTimeConverter do provided in this document do long unixTime = Convert.ToInt64((value - s_epoch).TotalMilliseconds);
Convert.ToInt64 performs Math.Round where in Newtonsoft in DateTimeUtils.cs in method UniversalTicksToJavaScriptTicks it instead divides by 10,000. The code samples should match this and do long unixTime = (value - s_epoch).Ticks / TimeSpan.TicksPerMillisecond;
so that the serialization provides the exact same value as Newtonsoft would have.
Page URL
Content source URL
Document Version Independent Id
9c6a7135-eb75-21a9-1d27-0880459523ca
Article author
Metadata
- ID: 6b74d77c-33e1-d44c-18c6-bd0b612f74de
- Service: dotnet-fundamentals
Metadata
Metadata
Assignees
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.