From 85a535956f5b6fbb035dca090123ece7fa8be8b5 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 6 Dec 2022 20:22:27 -0500 Subject: Used ChatGPT to fix certain problems; Removed more unnessesary stuff --- backend/PlayAudio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/PlayAudio.js') diff --git a/backend/PlayAudio.js b/backend/PlayAudio.js index d698798..fea4b3d 100644 --- a/backend/PlayAudio.js +++ b/backend/PlayAudio.js @@ -62,7 +62,7 @@ export async function playAudio(bot) { } else { metadataEmpty = true; } - duration = new Date(format.duration * 1000).toISOString().substr(11, 8); + duration = new Date(format.duration * 1000).toISOString().slice(11, 19); } catch (e) { console.error(e); } -- cgit v1.2.3