fix(route/latepost): incorrect pubDate (#18608)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user