From f396fe9afe50a5d78ed57da37b5cfca256f42010 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Fri, 26 Jan 2024 00:13:40 +0100 Subject: fix(frontend): fix duration formatter --- src/frontend/tubo/util.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/tubo/util.cljs b/src/frontend/tubo/util.cljs index 8e03f85..4958437 100644 --- a/src/frontend/tubo/util.cljs +++ b/src/frontend/tubo/util.cljs @@ -18,7 +18,7 @@ (defn format-duration [num] (let [duration (js/Date. (* num 1000)) - slice (if (> (.getHours duration) 1) + slice (if (>= (.getHours duration) 1) #(.slice % 11 19) #(.slice % 14 19))] (-> duration (.toISOString) slice))) -- cgit v1.2.3