From 765a0a4f68c17f9ec5278bce9ffb1c03fb05d95b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 18 Sep 2021 13:08:58 +0200 Subject: [PATCH] Display milliseconds at duration formatting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/Utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index e09eeebd..fb5c88c5 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -33,7 +33,7 @@ export default class Utils { minutesStr = '0' + minutes.toString(); } if (seconds < 10) { - secondsStr = '0' + seconds.toString(); + secondsStr = ('0' + seconds.toString()).substring(0, 6); } return hoursStr + ':' + minutesStr + ':' + secondsStr; } -- 2.34.1