Skip to content

Commit

Permalink
fix: notch time (DIYgod#2259)
Browse files Browse the repository at this point in the history
* fix notch time

* docs
  • Loading branch information
fengkx authored and DIYgod committed May 29, 2019
1 parent b52be1c commit f218807
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/routes/qdaily/notch/explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
})
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/qdaily/notch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : '',
};
})
Expand Down

0 comments on commit f218807

Please sign in to comment.