Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm committed Dec 31, 2023
1 parent 185067d commit 7741003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function newYearCountdownTimer() {
var newYear = new Date('1 January 2024');
var days = today - newYear;
var count_time = new Date(-days + (today.getTimezoneOffset() * 60 * 1000));
var countdown = Math.floor(-(days / 1000 / 60 / 60 / 60)) + 1;
var countdown = Math.floor(-(days / 1000 / 60 / 60 / 60));
if(countdown >= 0) {
var countdown_h = addIntZeros(Math.floor(-(days / 1000 / 60 / 60)) % 24, 2);
var countdown_min = addIntZeros(Math.floor(-(days / 1000 / 60)) % 60, 2);
Expand Down

0 comments on commit 7741003

Please sign in to comment.