Functions - format_hours(): Adjust minute formatting.

This commit is contained in:
fusionate 2023-05-29 19:12:11 +00:00
parent f4c141f6ef
commit b1cf7d7e1d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -817,7 +817,7 @@ function format_string($format, $data) {
//format seconds into hh:mm:ss
function format_hours($seconds) {
$hours = floor($seconds / 3600);
$minutes = floor(($seconds / 60) % 60);
$minutes = floor(floor($seconds / 60) % 60);
$seconds = $seconds % 60;
if (strlen($minutes) == 1) { $minutes = '0'.$minutes; }
if (strlen($seconds) == 1) { $seconds = '0'.$seconds; }