Fixed wrong day being displayed in nifty clocks
parent
47ba763a9d
commit
ab3de04c2d
|
|
@ -27,7 +27,7 @@ function draw() {
|
||||||
|
|
||||||
const hour = d02(now.getHours() - (is12Hour && now.getHours() > 12 ? 12 : 0));
|
const hour = d02(now.getHours() - (is12Hour && now.getHours() > 12 ? 12 : 0));
|
||||||
const minutes = d02(now.getMinutes());
|
const minutes = d02(now.getMinutes());
|
||||||
const day = d02(now.getDay());
|
const day = d02(now.getDate());
|
||||||
const month = d02(now.getMonth() + 1);
|
const month = d02(now.getMonth() + 1);
|
||||||
const year = now.getFullYear();
|
const year = now.getFullYear();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ function renderText(g) {
|
||||||
|
|
||||||
const hour = d02(now.getHours() - (is12Hour && now.getHours() > 12 ? 12 : 0));
|
const hour = d02(now.getHours() - (is12Hour && now.getHours() > 12 ? 12 : 0));
|
||||||
const minutes = d02(now.getMinutes());
|
const minutes = d02(now.getMinutes());
|
||||||
const day = d02(now.getDay());
|
const day = d02(now.getDate());
|
||||||
const month = d02(now.getMonth() + 1);
|
const month = d02(now.getMonth() + 1);
|
||||||
const year = now.getFullYear();
|
const year = now.getFullYear();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue