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

primitive.NewDateTimeFromTime only allows years between 1678 and 2262

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 1.4.0, 1.3.6
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: