解决一分钟之内发布的微博,pubDate为'刚刚'的bug (#1874)

解决一分钟之内发布的微博,pubDate为'刚刚'的bug

close #1870
This commit is contained in:
footair
2019-04-08 11:28:27 +08:00
committed by DIYgod
parent 563fa32714
commit ba57ded1cd
+2
View File
@@ -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) {