From f26f8ee04a1f92298f04ecf23b86b0ccf1334888 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 18 May 2018 15:45:33 +0800 Subject: [PATCH] rss: fix twitter user pubDate --- routes/twitter/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/twitter/user.js b/routes/twitter/user.js index 0a9b62708e..6dee7ecade 100644 --- a/routes/twitter/user.js +++ b/routes/twitter/user.js @@ -19,7 +19,7 @@ module.exports = async (ctx) => { item: data.map((item) => ({ title: `${item.in_reply_to_screen_name ? 'Re ' : ''}${item.text.length > 30 ? item.text.slice(0, 30) + '...' : item.text}`, description: `${item.in_reply_to_screen_name ? 'Re ' : ''}${item.text}`, - pubDate: new Date(item.createdTime).toUTCString(), + pubDate: new Date(item.created_at).toUTCString(), link: `https://twitter.com/${id}/status/${item.id_str}`, })), };