secondsToHClock(): always floor seconds for consistency (#7987)

Fixes: #7984
pull/7989/head
yparitcher 3 years ago committed by GitHub
parent 16ab5aa194
commit 120eaf9193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -166,7 +166,7 @@ function util.secondsToHClock(seconds, withoutSeconds, hmsFormat)
end
else
if hmsFormat then
return T(_("%1m%2s"), "0", string.format("%02.f", seconds))
return T(_("%1m%2s"), "0", string.format("%02.f", math.floor(seconds)))
else
return "0'" .. string.format("%02.f", seconds) .. "''"
end

Loading…
Cancel
Save