From a28aebb0e2cbd0b2e445bb7d57dc7fb2dee2a74d Mon Sep 17 00:00:00 2001 From: notofoe <43095406+notofoe@users.noreply.github.com> Date: Sat, 26 Dec 2020 13:47:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9F=A5=E4=B9=8E=E4=B8=93=E6=A0=8F=20p?= =?UTF-8?q?ubDate=201970=20(#6531)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/zhihu/zhuanlan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/zhihu/zhuanlan.js b/lib/routes/zhihu/zhuanlan.js index 10437a507..e5b7640d9 100644 --- a/lib/routes/zhihu/zhuanlan.js +++ b/lib/routes/zhihu/zhuanlan.js @@ -32,12 +32,12 @@ module.exports = async (ctx) => { title = item.question.title; author = item.question.author.name; link = `https://www.zhihu.com/question/${item.question.id}/answer/${item.id}`; - pubDate = new Date(item.question.created); + pubDate = new Date(item.created_time * 1000); } else if (item.type === 'article') { title = item.title; link = item.url; author = item.author.name; - pubDate = new Date(item.created); + pubDate = new Date(item.created * 1000); } return { title,