mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
解决一分钟之内发布的微博,pubDate为'刚刚'的bug (#1874)
解决一分钟之内发布的微博,pubDate为'刚刚'的bug close #1870
This commit is contained in:
@@ -56,6 +56,8 @@ module.exports = (html, timeZone = -serverOffset) => {
|
||||
} else if (/(\d+):(\d+)/.exec(html)) {
|
||||
math = /(\d+):(\d+)/.exec(html);
|
||||
date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), math[1], math[2]);
|
||||
} else if (/刚刚/.exec(html)) {
|
||||
math = /刚刚/.exec(html);
|
||||
}
|
||||
|
||||
if (math && date) {
|
||||
|
||||
Reference in New Issue
Block a user