diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-01-26 00:13:40 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2024-01-26 00:13:40 +0100 |
commit | f396fe9afe50a5d78ed57da37b5cfca256f42010 (patch) | |
tree | e64eb074b6f2922de887411ead2e7615fc649e3a | |
parent | 60e8994b136cd409a6120d2ba723097ee40a095b (diff) |
fix(frontend): fix duration formatter
-rw-r--r-- | src/frontend/tubo/util.cljs | 2 |
1 files changed, 1 insertions, 1 deletions
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))) |