Skip to content

Commit

Permalink
fix days calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
edvordo committed Mar 15, 2024
1 parent 9f2ee8d commit 2c10e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if (typeof Number.prototype.toTimeRemaining !== 'function') {
let seconds = Math.floor(value) % 60;
let minutes = Math.floor(value / 60) % 60;
let hours = Math.floor(value / 60 / 60) % 24;
let days = Math.floor(value / 60 / 60);
let days = Math.floor(value / 60 / 60 / 24);

let result = [];
if (days > 0) result.push(`${days}d`);
Expand Down

0 comments on commit 2c10e37

Please sign in to comment.