From: Jérôme Benoit Date: Sat, 18 Sep 2021 11:08:58 +0000 (+0200) Subject: Display milliseconds at duration formatting X-Git-Tag: v1.1.3~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=765a0a4f68c17f9ec5278bce9ffb1c03fb05d95b;p=e-mobility-charging-stations-simulator.git Display milliseconds at duration formatting Signed-off-by: Jérôme Benoit --- 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; }