fix: 知乎专栏 pubDate 1970 (#6531)
This commit is contained in:
parent
2b069f532e
commit
a28aebb0e2
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue