aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-01-26 09:34:44 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-01-26 09:34:44 +0100
commit7ee8ab7375bb6ea96fae43c840ab464ffc71c5ac (patch)
tree48bd4f61755a1208b7694d29d7ff7ac767e975d1 /src/frontend
parentf396fe9afe50a5d78ed57da37b5cfca256f42010 (diff)
fix(frontend): further fix duration formatter
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/tubo/util.cljs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/frontend/tubo/util.cljs b/src/frontend/tubo/util.cljs
index 4958437..9137cbe 100644
--- a/src/frontend/tubo/util.cljs
+++ b/src/frontend/tubo/util.cljs
@@ -18,7 +18,5 @@
(defn format-duration
[num]
(let [duration (js/Date. (* num 1000))
- slice (if (>= (.getHours duration) 1)
- #(.slice % 11 19)
- #(.slice % 14 19))]
+ slice #(.slice % (if (>= (.getUTCHours duration) 1) 11 14) 19)]
(-> duration (.toISOString) slice)))