Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8573

Make Date_t::millis signed

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • ALL

      Date_t::millis value is unsigned, but some of our external interfaces and docs use signed values. There are currently TODOs in the code to make this change.

      Here's one example:

      > d = new Date(-1)
      ISODate("1969-12-31T23:59:59.999Z")
      > d.getTime()
      -1
      > db.dates.insert({ "date" : d })
      > db.dates.findOne().date.getTime()
      -1
      > 
      

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            sverch Shaun Verch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: