Fixed wrong day being displayed in nifty clocks

master
Filipe Fradique 2021-11-04 05:36:09 +00:00
parent 47ba763a9d
commit ab3de04c2d
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function draw() {
const hour = d02(now.getHours() - (is12Hour && now.getHours() > 12 ? 12 : 0));
const minutes = d02(now.getMinutes());
const day = d02(now.getDay());
const day = d02(now.getDate());
const month = d02(now.getMonth() + 1);
const year = now.getFullYear();

View File

@ -31,7 +31,7 @@ function renderText(g) {
const hour = d02(now.getHours() - (is12Hour && now.getHours() > 12 ? 12 : 0));
const minutes = d02(now.getMinutes());
const day = d02(now.getDay());
const day = d02(now.getDate());
const month = d02(now.getMonth() + 1);
const year = now.getFullYear();