From 6a92399f5bd44103d1ab96a3b7b71699d4b76ade Mon Sep 17 00:00:00 2001 From: Lani Aung Date: Fri, 16 Aug 2024 21:37:20 -0600 Subject: [PATCH] 0 indexed day --- arbitrary-time-systems.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arbitrary-time-systems.html b/arbitrary-time-systems.html index 80c1322..11b6c30 100644 --- a/arbitrary-time-systems.html +++ b/arbitrary-time-systems.html @@ -71,7 +71,7 @@ const now = new Date(); document.getElementById("actual_time").textContent = now.toString(); - const base62d = base62[now.getDate()]; + const base62d = base62[now.getDate() - 1]; // NOT zero based :( const base62m = base62[now.getMonth()]; const base62y = `${base62[Math.floor(now.getFullYear() / 62)]}${base62[now.getFullYear() % 62]}`; const base62h = base62[now.getHours()];