projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finish the tests for missing_points, that map to tests/independent-series.html
[dygraphs.git]
/
dygraph-tickers.js
diff --git
a/dygraph-tickers.js
b/dygraph-tickers.js
index
b331de8
..
b9815fe
100644
(file)
--- a/
dygraph-tickers.js
+++ b/
dygraph-tickers.js
@@
-330,7
+330,8
@@
Dygraph.getDateAxis = function(start_time, end_time, granularity, opts, dg) {
// Find a time less than start_time which occurs on a "nice" time boundary
// for this granularity.
var g = spacing / 1000;
// Find a time less than start_time which occurs on a "nice" time boundary
// for this granularity.
var g = spacing / 1000;
- var d = new Date(start_time).setMilliseconds(0);
+ var d = new Date(start_time);
+ d.setMilliseconds(0);
var x;
if (g <= 60) { // seconds
x = d.getSeconds(); d.setSeconds(x - x % g);
var x;
if (g <= 60) { // seconds
x = d.getSeconds(); d.setSeconds(x - x % g);