Skip to content

Commit

Permalink
! Fix watch page video published time parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Oct 6, 2023
1 parent 560dcf6 commit 2354f4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/views/Watch/Watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2354f4d

Please sign in to comment.