fix: chouti pubDate

This commit is contained in:
DIYgod 2019-12-26 11:50:53 +08:00
parent 42af2de20f
commit 5e37616bad
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ module.exports = async (ctx) => {
author: item.nick,
description: `${item.title}<br><img src="${item.originalImgUrl || item.imgUrl || item.original_img_url || item.img_url}" /><br><a href="${host}/link/${item.id}">评论</a>`,
link: item.url,
pubDate: new Date(item.createdTime / 1000).toUTCString(),
pubDate: new Date(item.created_time / 1000).toUTCString(),
}));
ctx.state.data = {

View File

@ -16,7 +16,7 @@ module.exports = async (ctx) => {
author: item.nick,
description: `${item.title}<br><img src="${item.originalImgUrl || item.imgUrl || item.original_img_url || item.img_url}" /><br><a href="https://dig.chouti.com/link/${item.id}">评论</a>`,
link: item.url,
pubDate: new Date(item.createdTime / 1000).toUTCString(),
pubDate: new Date(item.created_time / 1000).toUTCString(),
}));
ctx.state.data = {