X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-tickers.js;h=b9815fe153b18ce03307a6311156dd06c7feb6e1;hb=0d0a92db6678ca5a1c7086d1af0e1369a105b258;hp=41e60e447d5a9f0e82fcad9d94b843930003aca1;hpb=c4a1115d27233f6f08fb683c072cfc4447a2298c;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);