Passing $currentDate : { date : false } still updates the field to current date

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      { "_id" : ObjectId("525847b17bb5149dea3bb079"), "n" : 5 }
      > db.foo.update({ n : 5 }, {$currentDate: {date : false }})
      { "_id" : ObjectId("525847b17bb5149dea3bb079"), "n" : 5, "date" : ISODate("2013-10-15T17:35:11.465Z") }

      Behavior is not intuitive as I expect date field not to be set in this case.

            Assignee:
            Scott Hernandez (Inactive)
            Reporter:
            Amalia Hawkins (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: