Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   Seedtime (http://www.bvlist.com/showthread.php?t=11523)

kira 10-04-18 10:41

Seedtime
 
http://www.imagebam.com/image/105bcb815075353I have a problem with the seedtime, and I do not find the problem, the calculation of the seedtime is wrong

http://thumbs2.imagebam.com/4b/52/05...b815075353.jpg
http://www.imagebam.com/image/105bcb815075353https://ibb.co/gVv9Wc

PHP Code:

function seedtime($ts 0) {         $days floor($ts 86400);     $hours floor($ts 3600 ) % 24;            $mins floor($ts 60) % 60;     $secs $ts 60;     if($days == 0)         return sprintf'%d h, %d m, %d s'$hours$mins$secs);     else         return sprintf'%d j, %d h, %d m, %d s'$days$hours$mins$secs); } 

Bump: Problem fixed add :
function gmtime() { date_default_timezone_set('Europe/Paris'); return strtotime(get_date_time()); }


All times are GMT +2. The time now is 22:41.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.