From 8c37abaea6a36534208f83f854a0adeae52fab11 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sun, 19 May 2024 23:41:53 +0200 Subject: [PATCH] Skip superfluous conversion to Date in ft-list-video (#5123) --- src/renderer/components/ft-list-video/ft-list-video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/ft-list-video/ft-list-video.js b/src/renderer/components/ft-list-video/ft-list-video.js index 976d024d4..578e1f4cf 100644 --- a/src/renderer/components/ft-list-video/ft-list-video.js +++ b/src/renderer/components/ft-list-video/ft-list-video.js @@ -670,7 +670,7 @@ export default defineComponent({ this.uploadedTime = new Date(this.data.published).toLocaleDateString([this.currentLocale, 'en']) } else { // Use 30 days per month, just like calculatePublishedDate - this.uploadedTime = getRelativeTimeFromDate(new Date(this.data.published), false) + this.uploadedTime = getRelativeTimeFromDate(this.data.published, false) } }