X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-tickers.js;h=b9815fe153b18ce03307a6311156dd06c7feb6e1;hb=5442f87cb2cff7eaf1cebc52370c39ee59eb171b;hp=41e60e447d5a9f0e82fcad9d94b843930003aca1;hpb=e26b71566419e1c051f3fbd1f4f8f64b063a04c9;p=dygraphs.git diff --git a/dygraph-tickers.js b/dygraph-tickers.js index 41e60e4..b9815fe 100644 --- a/dygraph-tickers.js +++ b/dygraph-tickers.js @@ -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);