CC-4855: System->Preferences->Fade in/out settings: Number's format is incorrect.
-fixed
This commit is contained in:
parent
ed7b22118c
commit
22ecc3f1fc
2 changed files with 17 additions and 0 deletions
|
@ -417,5 +417,16 @@ class Application_Common_DateHelper
|
|||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/* Returns a string of seconds converted into 'H:i:s.t' format
|
||||
*
|
||||
*/
|
||||
public static function convertSecondsToTimeFormat($p_seconds)
|
||||
{
|
||||
$time = explode('.', $p_seconds);
|
||||
$seconds = $time[0];
|
||||
$milliseconds = $time[1];
|
||||
return sprintf("%02d%s%02d%s%02d%s%d", floor($seconds/3600), ':', ($seconds/60)%60, ':', $seconds%60, '.', $milliseconds);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue