title: Cubism rendering wrongly
body: <p>I am trying to visualize some data using cubism every 10 mins. </p>
  
  <p>I am facing problems while cubism displays data. The metric definition is all fine as i saw while debugging but it visualizes data at the wrong time.</p>
  
  <p>Here is where the push into values happen -</p>
  
  <pre><code>while((i += step) &lt; stop) {
  var key = (new Date(i)).getTime();
      for(var j=0; j&lt;rec24.length; j++){
          if((rec24[j].receiveddate &lt;= key) &amp;&amp; (rec24[j].receiveddate &gt; (key - 600000))){
              var value = rec24[j].gtse;
                  values.push(value);
          }
          else{
              values.push(null);
          }
      }
  }
  callback(null, values = values.slice((start - stop) / step));
  </code></pre>
  
  <p>Here is how it looks now. Kinda strange since it renders for Fri 28 8:10AM, Fri 28 9:40PM, Sat 29 11:10AM and so on. Here is how it looks now <img src="https://i.imgur.com/3BPLjWs.png" alt="image link"></p>
  
  <p>Am i missing something here ? </p>