Skip to content

Commit

Permalink
Update news.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx authored Nov 24, 2024
1 parent 73166a6 commit 5102aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/kcna/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function handler(ctx) {
item.title = $('article-main-title').text() || item.title;

const dateElem = $('.publish-time');
const dateString = dateElem.text().match(/\d+\.\d+\.\d+/));
const dateString = dateElem.text().match(/\d+\.\d+\.\d+/);
dateElem.remove();
item.pubDate = dateString ? timezone(parseDate(dateString[0]), +9) : item.pubDate;

Expand Down

0 comments on commit 5102aa2

Please sign in to comment.