diff options
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/tubo/util.cljs | 4 |
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))) |