title: Use moment to check if date is from 2 minutes ago
body: <p>I tried <a href="https://stackoverflow.com/questions/9224773/js-check-if-date-is-less-than-1-hour-ago">this</a> but I can't make it work.</p>
  
  <p>I have an array of dates like this: <code>['5/15/2017, 2:59:06 PM', '5/15/2017, 2:59:16 PM', ...</code>]</p>
  
  <p>And I want to filter it and get the dates from the last 2 minutes.</p>
  
  <p>This is what I'm doing:</p>
  
  <pre><code>const twoMinutesAgo = moment().subtract(2, 'minutes')
  myArray.filter(stat =&gt; moment(stat.date).isAfter(twoMinutesAgo))
  </code></pre>
  
  <p>but this is returning always <code>true</code>.</p>
  
  <p>I saw that <code>twoMinutesAgo</code> is Mon May 15 2017 14:57:09 <strong>GMT-0700 (PDT)</strong></p>
  
  <p>while <code>moment(stat.date)</code> is Mon Mar 05 2018 14:59:06 <strong>GMT-0800 (PST)</strong></p>
  
  <p>But I'm not sure if that has something to do with it. Any ideas what I'm doing wrong?</p>