I have a problem with the seedtime, and I do not find the problem, the calculation of the seedtime is wrong
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()); }