From 783c571cb20101a6c1662ed01b644b8c06e44252 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sun, 17 Oct 2021 22:15:35 +1100 Subject: [PATCH] thrimbletrimmer: Fix stupid duration parsing typo introduced in cleanup --- thrimbletrimmer/scripts/IO.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrimbletrimmer/scripts/IO.js b/thrimbletrimmer/scripts/IO.js index e3d70c8..54ece59 100644 --- a/thrimbletrimmer/scripts/IO.js +++ b/thrimbletrimmer/scripts/IO.js @@ -108,7 +108,7 @@ function parseDuration(duration) { direction = -1; } 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) {