thrimbletrimmer: Fix stupid duration parsing typo introduced in cleanup

pull/235/head
Mike Lang 3 years ago
parent 3e768aa2a9
commit 783c571cb2

@ -108,7 +108,7 @@ function parseDuration(duration) {
direction = -1; direction = -1;
} }
const [hours, mins, secs] = duration.split(":"); const [hours, mins, secs] = duration.split(":");
return 3600 * parseInt(hours) + 60 * (mins || "0") + (secs || "0") * direction; return (3600 * parseInt(hours) + 60 * (mins || "0") + (secs || "0")) * direction;
} }
function toBustime(date) { function toBustime(date) {

Loading…
Cancel
Save