mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-30 18:33:08 +08:00
fix(route): AP News时区调整 (#12842)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
const timezone = require('@/utils/timezone');
|
||||
const HOME_PAGE = 'https://apnews.com';
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
@@ -21,8 +22,8 @@ module.exports = async (ctx) => {
|
||||
const $ = cheerio.load(response);
|
||||
$('div.Enhancement').remove();
|
||||
return Object.assign(item, {
|
||||
pubDate: new Date($("meta[property='article:published_time']").attr('content')),
|
||||
updated: new Date($("meta[property='article:modified_time']").attr('content')),
|
||||
pubDate: timezone(new Date($("meta[property='article:published_time']").attr('content')), 0),
|
||||
updated: timezone(new Date($("meta[property='article:modified_time']").attr('content')), 0),
|
||||
description: $('div.RichTextStoryBody').html(),
|
||||
category: $("meta[property='article:section']").attr('content'),
|
||||
guid: $("meta[name='brightspot.contentId']").attr('content'),
|
||||
|
||||
Reference in New Issue
Block a user