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

Make Date_t::millis signed

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Internal Code
    • None
    • ALL

    Description

      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
      > 
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: