Avoid code duplicatiom.
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 15 Jan 2021 17:48:11 +0000 (18:48 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 15 Jan 2021 17:48:11 +0000 (18:48 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Utils.ts

index 9969e2294210777d281f43a3278a1dc150b16aa6..878d49d63e473572527f35bcaf8d208e4fa04476 100644 (file)
@@ -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 {