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:
d7d1db7
)
Display milliseconds at duration formatting
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sat, 18 Sep 2021 11:08:58 +0000
(13:08 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Sat, 18 Sep 2021 11:08:58 +0000
(13:08 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/utils/Utils.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/Utils.ts
b/src/utils/Utils.ts
index e09eeebd3be31773495eb794f11610448f02fe62..fb5c88c5a61d1843e0496b732ba9ec1c9ab375af 100644
(file)
--- 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;
}