title: Compare two +new Date strings
body: <p>I'm trying to compare two different <code>+new Date</code>, but sometimes it gives different results.</p>
  
  <p>So this is how I'm doing it:
  The first user sends a request to Firebase(server) and sets value 
  <code>time: +new Date</code> like this</p>
  
  <pre><code>firebase.userRef.set({
     time: +new Date
  })
  </code></pre>
  
  <p>Then the second user sends a similar request to Firebase and sets value like above. Then second user finds user 1 in query and checks who sent the request first. Like so:</p>
  
  <pre><code>firebase.usersRef.child(user_uid).once("value",function(snapshot){
    firebase.usersRef.child(current_uid).once("value",function(childSnapshot) {
      if(snapshot.val().time &gt; childSnapshot.val().time){
         //current user requested first
      } else {
        //user found requested first
      }
    });
  });
  </code></pre>
  
  <p>But, sometimes both users gets the wrong answer. So the users think that current user requested first.</p>