fix: notch time (#2259)

* fix notch time

* docs
This commit is contained in:
fengkx 2019-05-30 01:01:54 +08:00 committed by DIYgod
parent b52be1cf99
commit f218807ed7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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