title: Trying to reassign a property to todays date
body: <p>I am trying to iterate through array of objects with properties that look like this:</p>
  <pre><code>[
    {
      _id: 123456,
      credentialType: 'oneTimeToken',
      email: 'test@test.com',
      oneTimeToken: 'asdfghjkl'
      disabledOn: 2021-10-10T18:34:36.039Z
    },
    {
      _id: 1234569,
      credentialType: 'email',
      email: 'test@test.com',
      password: '$4567uhji909iuyui'
      createdOn: 2021-10-05T18:34:36.129Z
    }
  ]
  </code></pre>
  <p>I put something like this together:</p>
  <pre><code>const now = new Date(Date.now())
  let credentials = await this.Model.findCredentialsByAid(user.aid, true)
  if (!credentials || credentials.length == 0) {
    credentials = await this.Model.findCredentialsByUserId(user._id)
  }
  
  credentials.map((credential: any) =&gt; {
    if (credential.credentialType === CredentialType.oneTimeToken) {
      if (!(credential.disabledOn &lt; now)) {
        credential.disabledOn = now;
        console.log(credential);
      }
    }
  })
  </code></pre>
  <p>Instead of getting <code>credential.disabledOn</code> reassigned to today's date, I get tomorrow's date.</p>