Standardize isNullOrNan.
[dygraphs.git] / dygraph-tickers.js
index 41e60e4..b9815fe 100644 (file)
@@ -331,6 +331,7 @@ Dygraph.getDateAxis = function(start_time, end_time, granularity, opts, dg) {
     // for this granularity.
     var g = spacing / 1000;
     var d = new Date(start_time);
+    d.setMilliseconds(0);
     var x;
     if (g <= 60) {  // seconds
       x = d.getSeconds(); d.setSeconds(x - x % g);