! Fix watch page video published time parsing (#4105)

This commit is contained in:
PikachuEXE 2023-10-08 05:15:51 +08:00 committed by GitHub
parent 560dcf6f68
commit 0c92b63b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -322,7 +322,8 @@ export default defineComponent({
channelId: this.channelId
})
this.videoPublished = new Date(result.page[0].microformat.publish_date.replace('-', '/')).getTime()
// `result.page[0].microformat.publish_date` example value: `2023-08-12T08:59:59-07:00`
this.videoPublished = new Date(result.page[0].microformat.publish_date).getTime()
if (result.secondary_info?.description.runs) {
try {