Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > Torrent Trader
Reply
  #1  
Old 10-04-18, 10:41
kira's Avatar
kira kira is offline
Senior Member
 
Join Date: Jul 2011
France
Posts: 69
Exclamation Seedtime
Click the image to open in full size.I have a problem with the seedtime, and I do not find the problem, the calculation of the seedtime is wrong

Click the image to open in full size.
Click the image to open in full size.https://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()); }

Last edited by kira; 10-04-18 at 10:59.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 08:11. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.