From b78e483874622d16f300da135ed64b36d6295198 Mon Sep 17 00:00:00 2001 From: ps-igel <60899838+ps-igel@users.noreply.github.com> Date: Sun, 21 Jun 2020 10:59:19 +0200 Subject: [PATCH] fix wrong month --- apps/numerals/numerals.app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/numerals/numerals.app.js b/apps/numerals/numerals.app.js index 123825853..e84793536 100644 --- a/apps/numerals/numerals.app.js +++ b/apps/numerals/numerals.app.js @@ -63,7 +63,7 @@ function draw(date){ if (date) { setUpdateInt(0); l1 = ("0"+(new Date()).getDate()).substr(-2); - l2 = ("0"+(new Date()).getMonth()).substr(-2); + l2 = ("0"+((new Date()).getMonth()+1)).substr(-2); setTimeout(()=>{ draw(); setUpdateInt(1); }, 5000); } else { l1 = ("0"+(_12hour?d.getHours()%12:d.getHours())).substr(-2);