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); }