Details
-
New Feature
-
Resolution: Fixed
-
Trivial - P5
-
2.7.2
-
None
-
Fully Compatible
Description
Hi all,
I was wondering why the decision was made to not allow a BsonType.DateTime to be (de)serialized as DateTimeOffset? I know you loose the Offset, etc. but I think this is not a big deal. Converting DateTimeOffset to and from DateTimes is generally a valid operation, so why not allowing it in MongoDB C#?
Just curios, because it could help, when someone has to handle with DateTimeOffset in models but wants to be persisted as BsonType.DateTime.