From 43cb72db9717e0f36063f6a6a3c69fc5a8b93dc1 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Tue, 4 Jul 2023 19:02:47 +0800 Subject: [PATCH] comment --- packages/content-handler/src/websites/weixin-qq-handler.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/content-handler/src/websites/weixin-qq-handler.ts b/packages/content-handler/src/websites/weixin-qq-handler.ts index 4ae9f6ae8..35006cd50 100644 --- a/packages/content-handler/src/websites/weixin-qq-handler.ts +++ b/packages/content-handler/src/websites/weixin-qq-handler.ts @@ -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)