mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
Add missing hours
This commit is contained in:
parent
fc2f40f08c
commit
f63af20497
1 changed files with 1 additions and 1 deletions
|
@ -1270,7 +1270,7 @@ function startTimer(duration, selector) {
|
|||
|
||||
// Time calculations for days, hours, minutes and seconds
|
||||
var years = Math.floor(duration / (60 * 60 * 24 * 365));
|
||||
var days = Math.floor((duration / (60 * 60 * 24 * 365)) / (60 * 60 * 24));
|
||||
var days = Math.floor((duration % (60 * 60 * 24 * 365)) / (60 * 60 * 24));
|
||||
var hours = Math.floor((duration % (60 * 60 * 24)) / (60 * 60));
|
||||
var minutes = Math.floor((duration % (60 * 60)) / (60));
|
||||
var seconds = Math.floor((duration % (60)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue