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

Create a standard serializer for DateTimeOffset

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Works as Designed
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Feature Request
    • Labels:

      Description

      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).

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: