projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117b8be
)
setMilliseconds() doesn't return this.
author
Adam Vartanian
<flooey@gmail.com>
Thu, 10 May 2012 21:18:48 +0000
(17:18 -0400)
committer
Adam Vartanian
<flooey@gmail.com>
Thu, 10 May 2012 21:18:48 +0000
(17:18 -0400)
dygraph-tickers.js
patch
|
blob
|
blame
|
history
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;
- 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);