Add DateTime representation to DateTimeOffsetSerializer

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Trivial - P5
    • 2.15.0
    • Affects Version/s: 2.7.2
    • Component/s: Serialization
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Robert Stam
            Reporter:
            Lukas Vosyka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: