Merge pull request #1 from Chapelier2000/Chapelier2000-patch-display-time-higher-than-60-min
Update Formatter.php
This commit is contained in:
commit
a40f0eb653
@ -40,7 +40,7 @@ abstract class Formatter implements UsageInformationAble {
|
|||||||
$minutes = floor($seconds / 60);
|
$minutes = floor($seconds / 60);
|
||||||
$hours = floor($minutes / 60);
|
$hours = floor($minutes / 60);
|
||||||
$minutes -= $hours * 60;
|
$minutes -= $hours * 60;
|
||||||
$seconds -= $hours * 60 + $minutes * 60;
|
$seconds -= ($hours * 60 + $minutes) * 60;
|
||||||
$format = ($hours > 0 ? $hours . ':' : '');
|
$format = ($hours > 0 ? $hours . ':' : '');
|
||||||
$format .= ($hours > 0 && $minutes < 10 ? '0' : '') . $minutes . ':';
|
$format .= ($hours > 0 && $minutes < 10 ? '0' : '') . $minutes . ':';
|
||||||
$format .= ($seconds < 10 ? '0' : '') . $seconds . ':';
|
$format .= ($seconds < 10 ? '0' : '') . $seconds . ':';
|
||||||
|
Loading…
Reference in New Issue
Block a user