From ae2913217552dc4c420a093cc0c81c0e05a32a69 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Bourgault Date: Mon, 2 May 2016 20:33:48 -0400 Subject: [PATCH] Made a single second look nicer Changed the condition so it returns only ":01" when the time is at a second (or less) for the items with format = 1. --- src/Disp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Disp.js b/src/Disp.js index 3def81a..773ca06 100644 --- a/src/Disp.js +++ b/src/Disp.js @@ -6,7 +6,7 @@ CM.Disp.FormatTime = function(time, format) { if (time == 'Infinity') return time; if (CM.ConfigData.TimeFormat == 1) { if (time > 3153600000) return 'XX:XX:XX:XX:XX'; - if ((format == 1) && (time < 1)) return ''; + if ((format == 1) && (time == 1)) return ':01'; time = Math.ceil(time); var y = Math.floor(time / 31536000); var d = Math.floor(time % 31536000 / 86400);