mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): bjnews wrong pubDate (#7096)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const cheerio = require('cheerio');
|
||||
const date = require('@/utils/date');
|
||||
const got = require('@/utils/got');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
@@ -24,7 +25,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
const single = {
|
||||
title,
|
||||
pubDate: new Date($d('.left-info .timer').text()),
|
||||
pubDate: date($d('.left-info .timer').text(), +8),
|
||||
author: $d('.left-info .reporter').text(),
|
||||
link: itemUrl,
|
||||
guid: itemUrl,
|
||||
|
||||
Reference in New Issue
Block a user