Enable more than 24 hours in timed statistics
This commit is contained in:
@@ -422,7 +422,7 @@ class SP_Meta_Box_Event_Performance {
|
||||
<?php
|
||||
$intval = intval( $value );
|
||||
$timeval = gmdate( 'i:s', $intval );
|
||||
$hours = gmdate( 'H', $intval );
|
||||
$hours = floor( $intval / 3600 );
|
||||
|
||||
if ( '00' != $hours )
|
||||
$timeval = $hours . ':' . $timeval;
|
||||
|
||||
@@ -195,7 +195,7 @@ class SP_Meta_Box_Player_Statistics {
|
||||
// Convert value
|
||||
$intval = intval( $value );
|
||||
$timeval = gmdate( 'i:s', $intval );
|
||||
$hours = gmdate( 'H', $intval );
|
||||
$hours = floor( $intval / 3600 );
|
||||
|
||||
if ( '00' != $hours )
|
||||
$timeval = $hours . ':' . $timeval;
|
||||
@@ -205,7 +205,7 @@ class SP_Meta_Box_Player_Statistics {
|
||||
// Convert placeholder
|
||||
$intval = intval( $placeholder );
|
||||
$placeholder = gmdate( 'i:s', $intval );
|
||||
$hours = gmdate( 'H', $intval );
|
||||
$hours = floor( $intval / 3600 );
|
||||
|
||||
if ( '00' != $hours )
|
||||
$placeholder = $hours . ':' . $placeholder;
|
||||
|
||||
@@ -221,7 +221,7 @@ class SP_Event extends SP_Custom_Post{
|
||||
|
||||
$intval = intval( $performance_value );
|
||||
$timeval = gmdate( 'i:s', $intval );
|
||||
$hours = gmdate( 'H', $intval );
|
||||
$hours = floor( $intval / 3600 );
|
||||
|
||||
if ( '00' != $hours )
|
||||
$timeval = $hours . ':' . $timeval;
|
||||
|
||||
@@ -698,7 +698,7 @@ class SP_Player extends SP_Custom_Post {
|
||||
|
||||
$intval = intval( $performance_value );
|
||||
$timeval = gmdate( 'i:s', $intval );
|
||||
$hours = gmdate( 'H', $intval );
|
||||
$hours = floor( $intval / 3600 );
|
||||
|
||||
if ( '00' != $hours )
|
||||
$timeval = $hours . ':' . $timeval;
|
||||
|
||||
Reference in New Issue
Block a user