-
Type: New Feature
-
Resolution: Fixed
-
Priority: Trivial - P5
-
Affects Version/s: 2.7.2
-
Component/s: Serialization
-
None
-
Fully Compatible
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.