fix(route/latepost): incorrect pubDate (#18608)
This commit is contained in:
parent
c6216990b2
commit
e8346f77ff
|
|
@ -101,7 +101,7 @@ async function handler(ctx) {
|
|||
const pubDate = content('div.article-header-date').text();
|
||||
|
||||
if (pubDate) {
|
||||
item.pubDate = /\d+月\d+日/.test(pubDate) ? parseDate(pubDate, ['MM月DD日 HH:mm', 'YYYY年MM月DD日 HH:mm']) : parseRelativeDate(pubDate);
|
||||
item.pubDate = /\d+月\d+日/.test(pubDate) ? parseDate(pubDate, ['YYYY年MM月DD日 HH:mm', 'MM月DD日 HH:mm']) : parseRelativeDate(pubDate);
|
||||
}
|
||||
|
||||
item.pubDate = timezone(item.pubDate, +8);
|
||||
|
|
|
|||
Loading…
Reference in New Issue