mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
comment
This commit is contained in:
parent
9a92fc6870
commit
43cb72db97
1 changed files with 1 additions and 2 deletions
|
|
@ -16,13 +16,12 @@ export class WeixinQqHandler extends ContentHandler {
|
|||
const publishTime = dom.querySelector('#publish_time')?.textContent
|
||||
if (publishTime) {
|
||||
const dateTimeFormat = 'yyyy-LL-dd HH:mm'
|
||||
// convert the publish time to a string in the format of "2023-01-01 00:00" in GMT+8
|
||||
const publishTimeISO = DateTime.fromFormat(
|
||||
publishTime,
|
||||
dateTimeFormat
|
||||
).toISO()
|
||||
|
||||
// create a meta node to store the publish time with timezone
|
||||
// create a meta node to store the publish time in ISO format
|
||||
const metaNode = dom.createElement('meta')
|
||||
metaNode.setAttribute('name', 'date')
|
||||
metaNode.setAttribute('content', publishTimeISO)
|
||||
|
|
|
|||
Loading…
Reference in a new issue