diff --git a/thrimbletrimmer/scripts/IO.js b/thrimbletrimmer/scripts/IO.js index 54ece59..faf3728 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 * (parseInt(mins) || 0) + (parseFloat(secs) || 0)) * direction; } function toBustime(date) {