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";