title: Querying Firebase based on time
body: <p>I am trying to query my Firebase based on time limits. I am following <a href="https://www.firebase.com/blog/2013-10-01-queries-part-one.html" rel="nofollow noreferrer">this blog post</a> with this attached <a href="http://jsfiddle.net/katowulf/EZUtP/" rel="nofollow noreferrer">jsFiddle</a>.</p>
  
  <p>The issue is that I am getting a blank firebaseArray back.</p>
  
  <pre><code>        var currentTime = (new Date).getTime();
          var twentyFoursHoursAgo = currentTime - 86400000;
  
          //scoresRef is defined as new Firebase(http://myfirebase.firebaseio.com/scores)
          scoresRef.on('value', function (dataSnapshot) {
          var summaryScores = $firebaseArray(scoresRef.orderByChild('timestamp').startAt(twentyFoursHoursAgo).endAt(currentTime));
          $scope.summaryScores = summaryScores;
          console.log(summaryScores);
          }
  </code></pre>
  
  <p>The idea is that as users add more scores, the array will change. Then I can do different data manipulation on it (like average, etc). That way, there can be a running 24 hour average displayed on the app.</p>
  
  <p>This is what the data looks like in Firebase:</p>
  
  <p><a href="https://i.stack.imgur.com/OcBXz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OcBXz.jpg" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong? I know the data is in there.</p>