From 02280b576b9d01577ae40decd7e5bd121ed20dde Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 18 Jul 2024 10:33:06 +0800 Subject: [PATCH] fix: wechat official account articles published date not captured because its format is changed --- packages/content-handler/src/websites/weixin-qq-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/content-handler/src/websites/weixin-qq-handler.ts b/packages/content-handler/src/websites/weixin-qq-handler.ts index 4ac93c4e3..454728655 100644 --- a/packages/content-handler/src/websites/weixin-qq-handler.ts +++ b/packages/content-handler/src/websites/weixin-qq-handler.ts @@ -15,7 +15,7 @@ export class WeixinQqHandler extends ContentHandler { // Retrieve the publish time const publishTime = dom.querySelector('#publish_time')?.textContent if (publishTime) { - const dateTimeFormat = 'yyyy-LL-dd HH:mm' + const dateTimeFormat = 'yyyy年LL月dd日 HH:mm' // published time is in UTC+8 const publishTimeISO = DateTime.fromFormat(publishTime, dateTimeFormat, { zone: 'Asia/Shanghai',