Fix pubDate format and close #1476 (#1477)

This commit is contained in:
imlonghao
2019-01-28 18:25:11 +08:00
committed by DIYgod
parent 5c60a2c5f7
commit dc9e52b7c9

View File

@@ -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}`,
})),
};