Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1001

Current time zone mode for time.Time handling wrt timezones

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • BSON

    Description

      the evergreen team observes that timezones are handled differently with the new bson library relative to mgobson. I don't think there's a problem in terms of correctness, but it causes our tests to fail in ways that are irritating, and requires some context in order to fix.

      I believe that mgobson converted time.Time back to the current time zone, and the new driver leaves them in UTC. This should be fully documented in any migration material, and potentially in the API documentation, but it might be nice to build/provide a set of codecs for compatibility mode, to reduce migration friction.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sam.kleinman Sam Kleinman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: