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

primitive.NewDateTimeFromTime only allows years between 1678 and 2262

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0, 1.3.6
    • Component/s: BSON
    • Security Level: Public
    • Labels:
      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

              Assignee:
              divjot.arora Divjot Arora
              Reporter:
              nikola.irinchev Nikola Irinchev
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: