diff options
author | Simon Rettberg | 2022-05-17 13:01:17 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-17 13:01:17 +0200 |
commit | d9b37bfe89040598783312f7b6c829af76f2f422 (patch) | |
tree | cbe515355985ebed3da601d5c781189446c57a1c /inc/util.inc.php | |
parent | [statistics_reporting] Report GPU stats in 7/30/90 fashion (diff) | |
download | slx-admin-d9b37bfe89040598783312f7b6c829af76f2f422.tar.gz slx-admin-d9b37bfe89040598783312f7b6c829af76f2f422.tar.xz slx-admin-d9b37bfe89040598783312f7b6c829af76f2f422.zip |
[inc/Util] Remove leading space in formatDuration() when < 24h
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r-- | inc/util.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php index b4340c94..06f60007 100644 --- a/inc/util.inc.php +++ b/inc/util.inc.php @@ -395,7 +395,8 @@ class Util $prev = true; } } - return implode(' ', $parts) . ' ' . gmdate($showSecs ? 'H:i:s' : 'H:i', $seconds); + $parts[] = gmdate($showSecs ? 'H:i:s' : 'H:i', $seconds); + return implode(' ', $parts); } /** |