From dc9e52b7c93ac0c8b9c3de21e9e01de70c37e922 Mon Sep 17 00:00:00 2001 From: imlonghao Date: Mon, 28 Jan 2019 18:25:11 +0800 Subject: [PATCH] Fix pubDate format and close #1476 (#1477) --- lib/routes/github/issue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/github/issue.js b/lib/routes/github/issue.js index 57f41a0f08..78f8d7ff5c 100644 --- a/lib/routes/github/issue.js +++ b/lib/routes/github/issue.js @@ -29,7 +29,7 @@ module.exports = async (ctx) => { .map((item) => ({ title: item.title, description: md.render(item.body) || 'No description', - pubDate: new Date(item.created_at), + pubDate: new Date(item.created_at).toUTCString(), link: `${host}/${item.number}`, })), };