[CSHARP-1460] Option to serialize DateTime fields as local time in JsonWriterSettings Created: 28/Oct/15  Updated: 01/Apr/19  Resolved: 01/Apr/19

Status: Closed
Project: C# Driver
Component/s: Feature Request, Serialization
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Trivial - P5
Reporter: Stefano Castriotta Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CSHARP-1858 Add user configurable output converte... Closed

 Description   

There should be an option int the JsonWriterSettings to serialize DateTime fields as local time when calling the ToJson() extension.



 Comments   
Comment by Jeffrey Yemin [ 01/Apr/19 ]

CSHARP-1858 will offer a more general solution to this problem, so closing this as Won't Fix.

Comment by Stefano Castriotta [ 28/Oct/15 ]

I added the option in my fork: https://github.com/stefanocastriotta/mongo-csharp-driver/commit/51c0d037ae229ab237b7a68b159cdf4865c98f44

Generated at Wed Feb 07 21:39:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.