This commit is contained in:
Sam Potts
2018-01-22 23:20:03 +11:00
parent 26e9aaceb8
commit b298587c0b
7 changed files with 17 additions and 12 deletions
+5
View File
@@ -612,6 +612,11 @@ const utils = {
// Format time to UI friendly string
formatTime(time = 0, displayHours = false, inverted = false) {
// Bail if the value isn't a number
if (!utils.is.number(time)) {
return;
}
// Format time component to add leading zero
const format = value => `0${value}`.slice(-2);