Skip to content

Commit

Permalink
countdown: accurately count down to dates that are more than 24 days …
Browse files Browse the repository at this point in the history
…in the future. weird
  • Loading branch information
stefansundin committed Jan 3, 2024
1 parent 54b584d commit 4f3aa27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/countdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
var seconds = diff % 60;
var minutes = Math.floor((diff % 3600) / 60);
var hours = Math.floor((diff % 86400) / 3600);
var days = Math.floor((diff % 2073600) / 86400);
var days = Math.floor(diff / 86400);

var text = "";
if (!passed && diff < 3600) {
Expand Down

0 comments on commit 4f3aa27

Please sign in to comment.