From 054531cacb9f4a823fee5349e396eeb98494bcd4 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 8 Feb 2010 14:45:47 -0800 Subject: [PATCH] simplify logic --- dygraph.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dygraph.js b/dygraph.js index 5e61e1b..66987dd 100644 --- 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()); } } -- 2.7.4