projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95298f2
)
simplify logic
author
Dan Vanderkam
<danvk@google.com>
Mon, 8 Feb 2010 22:45:47 +0000
(14:45 -0800)
committer
Dan Vanderkam
<danvk@google.com>
Mon, 8 Feb 2010 22:45:47 +0000
(14:45 -0800)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
5e61e1b
..
66987dd
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-909,10
+909,8
@@
Dygraph.prototype.hmsString_ = function(date) {
return zeropad(d.getHours()) + ":" +
zeropad(d.getMinutes()) + ":" +
zeropad(d.getSeconds());
- } else if (d.getMinutes()) {
- return zeropad(d.getHours()) + ":" + zeropad(d.getMinutes());
} else {
- return zeropad(d.getHours()) + ":
00"
;
+ return zeropad(d.getHours()) + ":
" + zeropad(d.getMinutes())
;
}
}