repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab4f76f
)
Avoid code duplicatiom.
author
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 15 Jan 2021 17:48:11 +0000
(18:48 +0100)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/Utils.ts
b/src/utils/Utils.ts
index 9969e2294210777d281f43a3278a1dc150b16aa6..878d49d63e473572527f35bcaf8d208e4fa04476 100644
(file)
--- 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 {