1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00

Add missing hours

This commit is contained in:
DanielnetoDotCom 2021-03-18 21:29:05 -03:00
parent fc2f40f08c
commit f63af20497

View file

@ -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)));