We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acbbc8c commit 0fca2d2Copy full SHA for 0fca2d2
1 file changed
index.js
@@ -462,20 +462,15 @@ window.onload = function () {
462
}, 60000);
463
464
function updateTime() {
465
- let today = new Date();
+ var today = new Date();
466
+ today.setHours(today.getHours() + options.ui_clock_dayLightSaving);
467
year = today.getFullYear();
468
month = today.getMonth();
469
date = today.getDate();
470
day = today.getDay();
471
hour = today.getHours();
472
minute = today.getMinutes();
473
- hour += options.ui_clock_dayLightSaving;
474
- if (hour < 0)
475
- hour = 23;
476
- if (hour > 23)
477
- hour = 0;
478
-
479
if (!options.ui_clock_24HourFormat && hour > 12) {
480
hour = hour % 12;
481
if (hour == 0)
0 commit comments