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

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

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

      { "_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:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            amalia.hawkins@10gen.com Amalia Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: