primitive.NewDateTimeFromTime only allows years between 1678 and 2262

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.4.0, 1.3.6
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Divjot Arora (Inactive)
              Reporter:
              Nikola Irinchev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: