mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: 知乎专栏 pubDate 1970 (#6531)
This commit is contained in:
@@ -32,12 +32,12 @@ module.exports = async (ctx) => {
|
||||
title = item.question.title;
|
||||
author = item.question.author.name;
|
||||
link = `https://www.zhihu.com/question/${item.question.id}/answer/${item.id}`;
|
||||
pubDate = new Date(item.question.created);
|
||||
pubDate = new Date(item.created_time * 1000);
|
||||
} else if (item.type === 'article') {
|
||||
title = item.title;
|
||||
link = item.url;
|
||||
author = item.author.name;
|
||||
pubDate = new Date(item.created);
|
||||
pubDate = new Date(item.created * 1000);
|
||||
}
|
||||
return {
|
||||
title,
|
||||
|
||||
Reference in New Issue
Block a user