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

primitive.NewDateTimeFromTime only allows years between 1678 and 2262

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.4.0, 1.3.6
    • None
    • BSON
    • None

    Description

      Due to internally calling `time.UnixNano`, `primitive.NewDateTimeFromTime` is artificially limiting the range of dates supported. Instead, it should get the unix seconds from the time argument and add them to the nanoseconds divided by a million.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: