Browse Source

bugfix: index.html: increment month number so its showing the right month

master
parent
commit
e5771d92e5
  1. 2
      pages/index.html
  2. 2
      scripts/auth.js

2
pages/index.html

@ -72,7 +72,7 @@ document.addEventListener('DOMContentLoaded', async function() {
// Display
let timeCreated = new Date(item.timeCreatedUnix * 1000);
todosDiv.innerHTML += "<tr><td>" + item.text + "</td>" +
"<td>" + " " + timeCreated.getDate() + "/" + timeCreated.getMonth() + "/" + timeCreated.getFullYear() + "</td>" +
"<td>" + " " + timeCreated.getDate() + "/" + (timeCreated.getMonth() + 1) + "/" + timeCreated.getFullYear() + "</td>" +
"<td><button class='btn btn-success' id='" + todoCompleteBtnID + "'>" +
"<img src='/static/images/check.svg'></button><button class='btn btn-danger' id='" +
todoDeleteBtnID + "'><img src='/static/images/trash3-fill.svg'></button></td></tr>";

2
scripts/auth.js

@ -4,7 +4,7 @@
const AuthHeaderKey = "Auth";
const AuthSeparator = "<->" // username<->password
const AuthSeparator = "<-->" // username<-->password
const authStorageUsername = "username";
const authStoragePassword = "password";

Loading…
Cancel
Save