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), +)