From 011a8c6d566d2dc0620902cd2ecc9edcc5ff0912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20T=C3=A4kker?= Date: Thu, 19 Feb 2026 15:33:58 +0100 Subject: [PATCH] Add formatted display for seconds played and duration --- app/components/Player/index.vue | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/app/components/Player/index.vue b/app/components/Player/index.vue index ca91c99..c1da789 100644 --- a/app/components/Player/index.vue +++ b/app/components/Player/index.vue @@ -28,6 +28,14 @@ const { secondsPlayed, duration, } = usePlayer() + +const secondsPlayedFormatted = computed(() => + new Date(secondsPlayed.value * 1000).toISOString().slice(14, 19), +) + +const durationFormatted = computed(() => + new Date(duration.value * 1000).toISOString().slice(14, 19), +)