From: Jérôme Benoit Date: Fri, 15 Jan 2021 17:48:11 +0000 (+0100) Subject: Avoid code duplicatiom. X-Git-Tag: v1.0.1-0~143 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a9dc13ad1ecd86e315a45dbfb427be0ed145bf3c;p=e-mobility-charging-stations-simulator.git Avoid code duplicatiom. Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index 9969e229..878d49d6 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -11,7 +11,7 @@ export default class Utils { } static secondsToHHMMSS(seconds: number): string { - return new Date(seconds * 1000).toISOString().substr(11, 8); + return Utils.milliSecondsToHHMMSS(seconds * 1000); } static milliSecondsToHHMMSS(milliSeconds: number): string {