From 5e37616bad104e00a4e691989809663891f25fd7 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 26 Dec 2019 11:50:53 +0800 Subject: [PATCH] fix: chouti pubDate --- lib/routes/chouti/index.js | 2 +- lib/routes/chouti/top.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/chouti/index.js b/lib/routes/chouti/index.js index 1070e5790..97fcee0c3 100644 --- a/lib/routes/chouti/index.js +++ b/lib/routes/chouti/index.js @@ -23,7 +23,7 @@ module.exports = async (ctx) => { author: item.nick, description: `${item.title}

评论`, link: item.url, - pubDate: new Date(item.createdTime / 1000).toUTCString(), + pubDate: new Date(item.created_time / 1000).toUTCString(), })); ctx.state.data = { diff --git a/lib/routes/chouti/top.js b/lib/routes/chouti/top.js index 2445fec5c..7520a6b2b 100644 --- a/lib/routes/chouti/top.js +++ b/lib/routes/chouti/top.js @@ -16,7 +16,7 @@ module.exports = async (ctx) => { author: item.nick, description: `${item.title}

评论`, link: item.url, - pubDate: new Date(item.createdTime / 1000).toUTCString(), + pubDate: new Date(item.created_time / 1000).toUTCString(), })); ctx.state.data = {