From f218807ed703bf0dd64b7360cfe00fa492a0e317 Mon Sep 17 00:00:00 2001 From: fengkx Date: Thu, 30 May 2019 01:01:54 +0800 Subject: [PATCH] fix: notch time (#2259) * fix notch time * docs --- lib/routes/qdaily/notch/explore.js | 2 +- lib/routes/qdaily/notch/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/qdaily/notch/explore.js b/lib/routes/qdaily/notch/explore.js index 09d0f6866..9fb590b40 100644 --- a/lib/routes/qdaily/notch/explore.js +++ b/lib/routes/qdaily/notch/explore.js @@ -50,7 +50,7 @@ module.exports = async (ctx) => { title: post.title, description: await ProcessFeed(data.index_type, item), link: post.share.url, - pubDate: new Date(post.published_at).toUTCString(), + pubDate: new Date(post.published_at * 1000).toUTCString(), author: data.title, }; }) diff --git a/lib/routes/qdaily/notch/index.js b/lib/routes/qdaily/notch/index.js index 443e0cc22..5ea700c8d 100644 --- a/lib/routes/qdaily/notch/index.js +++ b/lib/routes/qdaily/notch/index.js @@ -41,7 +41,7 @@ module.exports = async (ctx) => { title: post.title, description: await ProcessFeed(post.id), link: post.share.url, - pubDate: new Date(post.published_at).toUTCString(), + pubDate: new Date(post.published_at * 1000).toUTCString(), author: post.author_info ? post.author_info.username : '', }; })