diff --git a/packages/content-handler/src/websites/weixin-qq-handler.ts b/packages/content-handler/src/websites/weixin-qq-handler.ts index 35006cd50..4ac93c4e3 100644 --- a/packages/content-handler/src/websites/weixin-qq-handler.ts +++ b/packages/content-handler/src/websites/weixin-qq-handler.ts @@ -16,10 +16,10 @@ export class WeixinQqHandler extends ContentHandler { const publishTime = dom.querySelector('#publish_time')?.textContent if (publishTime) { const dateTimeFormat = 'yyyy-LL-dd HH:mm' - const publishTimeISO = DateTime.fromFormat( - publishTime, - dateTimeFormat - ).toISO() + // published time is in UTC+8 + const publishTimeISO = DateTime.fromFormat(publishTime, dateTimeFormat, { + zone: 'Asia/Shanghai', + }).toISO() // create a meta node to store the publish time in ISO format const metaNode = dom.createElement('meta')