From 120eaf91934ae73ae2ffc6452aacc68a54f20c1e Mon Sep 17 00:00:00 2001 From: yparitcher Date: Sun, 18 Jul 2021 14:18:56 -0400 Subject: [PATCH] secondsToHClock(): always floor seconds for consistency (#7987) Fixes: #7984 --- frontend/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/util.lua b/frontend/util.lua index 5db604c9f..6a63d61d5 100644 --- a/frontend/util.lua +++ b/frontend/util.lua @@ -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