Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-392

Create a standard serializer for DateTimeOffset

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 1.3.1
    • Component/s: Feature Request

      Create a serializer for the DateTimeOffset type based on the Microsoft implementation of DateTimeOffset in JSON. Represent it as a complex type:

      {"DateTime":dateTime,"OffsetMinutes":offsetMinutes}

      . The offsetMinutes member is the local time offset from Greenwich Mean Time (GMT), also now referred to as Coordinated Universal Time (UTC), associated with the location of the event of interest. The dateTime member represents the instance in time when the event of interest occurred. On serialization, the dateTime member is always serialized in GMT. So, if describing 3:00 AM New York time, dateTime has a time component of 8:00 AM and offsetMinutes are 300 (minus 300 minutes or 5 hours from GMT).

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            brianknight10 Brian Knight
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: