aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-01-26 00:13:40 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-01-26 00:13:40 +0100
commitf396fe9afe50a5d78ed57da37b5cfca256f42010 (patch)
treee64eb074b6f2922de887411ead2e7615fc649e3a /src/frontend
parent60e8994b136cd409a6120d2ba723097ee40a095b (diff)
fix(frontend): fix duration formatter
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tubo/util.cljs2
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)))