Skip to content

Commit

Permalink
fix(route): apnews (DIYgod#12126)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL authored Mar 16, 2023
1 parent b445011 commit a0f06e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/v2/apnews/topics.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const got = require('@/utils/got');
const cheerio = require('cheerio');
const { parseDate } = require('@/utils/parse-date');
const timezone = require('@/utils/timezone');
const { art } = require('@/utils/render');
const path = require('path');
const HOME_PAGE = 'https://apnews.com';
Expand Down Expand Up @@ -31,7 +32,7 @@ module.exports = async (ctx) => {
}),
link: `${HOME_PAGE}/article/${item.contents[0].canonicalUrl}-${item.contents[0].shortId}`,
author: item.contents[0].bylines ? item.contents[0].bylines.slice(3) : null,
pubDate: parseDate(item.contents[0].published),
pubDate: timezone(parseDate(item.contents[0].published), 0),
category: item.contents[0].tagObjs.map((tag) => tag.name),
};
});
Expand Down

0 comments on commit a0f06e1

Please sign in to comment.