Skip superfluous conversion to Date in ft-list-video (#5123)

This commit is contained in:
absidue 2024-05-19 23:41:53 +02:00 committed by GitHub
parent 5c6f603880
commit 8c37abaea6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}
}