From a504d7256df1d6406fa55a866c009c56e89229ca Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:07:46 -0400 Subject: [PATCH] fix publish date parsing --- src/renderer/helpers/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/helpers/utils.js b/src/renderer/helpers/utils.js index 8e7e8b4e2ba53..f5a2a86981233 100644 --- a/src/renderer/helpers/utils.js +++ b/src/renderer/helpers/utils.js @@ -524,14 +524,14 @@ export function formatDurationAsTimestamp(lengthSeconds) { export function timestampToDuration(timestamp) { const splitTimestamp = timestamp.split(':') - let seconds = timestamp.at(-1) + let seconds = Number(splitTimestamp.at(-1)) if (splitTimestamp.length > 1) { - seconds += timestamp.at(-2) * 60 + seconds += Number(splitTimestamp.at(-2) * 60) } if (splitTimestamp.length > 2) { - seconds += timestamp.at(-3) * 3600 + seconds += Number(splitTimestamp.at(-3) * 3600) } return seconds