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

Make Date_t::millis signed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Operating System:
      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

          Issue Links

            Activity

              People

              Assignee:
              schwerin Andy Schwerin
              Reporter:
              sverch Shaun Verch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: