From 8766d1b46414a22546a4c3da6a15f64fada5cbef Mon Sep 17 00:00:00 2001 From: Marc LeBlanc Date: Tue, 25 Sep 2018 12:25:06 -0400 Subject: [PATCH] Fixed clock format --- web/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/script.js b/web/js/script.js index 7acff27..b759586 100644 --- a/web/js/script.js +++ b/web/js/script.js @@ -131,7 +131,7 @@ function setClock() { var now = new Date(); - var clockValue = now.getHours() + ":" + now.getMinutes(); + var clockValue = now.getHours() + ":" + now.getMinutes().toString().padStart(2, "0"); $("#clock").html(clockValue); }