Skip to content

Commit

Permalink
"Fixed countdown issue"
Browse files Browse the repository at this point in the history
  • Loading branch information
4rnv committed Jan 10, 2024
1 parent 9780e40 commit 2669c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getTimeRemaining(endtime) {
const days = Math.floor(total / (1000 * 60 * 60 * 24));
return {
total,
days: days.toString(),
days: days <= 9 ? `0${days}` : `${days}`,
hours: hours <= 9 ? `0${hours}` : `${hours}`,
mins: minutes <= 9 ? `0${minutes}` : `${minutes}`,
secs: seconds <= 9 ? `0${seconds}` : `${seconds}`
Expand Down

0 comments on commit 2669c15

Please sign in to comment.