From e5771d92e582c2b7717aa24910526ecc18ed4442 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Wed, 22 Nov 2023 17:57:34 +0300 Subject: [PATCH] bugfix: index.html: increment month number so its showing the right month --- pages/index.html | 2 +- scripts/auth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.html b/pages/index.html index 7afd54b..6705b3a 100644 --- a/pages/index.html +++ b/pages/index.html @@ -72,7 +72,7 @@ document.addEventListener('DOMContentLoaded', async function() { // Display let timeCreated = new Date(item.timeCreatedUnix * 1000); todosDiv.innerHTML += "" + item.text + "" + - "" + " " + timeCreated.getDate() + "/" + timeCreated.getMonth() + "/" + timeCreated.getFullYear() + "" + + "" + " " + timeCreated.getDate() + "/" + (timeCreated.getMonth() + 1) + "/" + timeCreated.getFullYear() + "" + ""; diff --git a/scripts/auth.js b/scripts/auth.js index 29b3608..273ccf3 100644 --- a/scripts/auth.js +++ b/scripts/auth.js @@ -4,7 +4,7 @@ const AuthHeaderKey = "Auth"; -const AuthSeparator = "<->" // username<->password +const AuthSeparator = "<-->" // username<-->password const authStorageUsername = "username"; const authStoragePassword = "password";