fix(route): bjnews wrong pubDate (#7096)
This commit is contained in:
parent
e492277271
commit
8e9a2afd1b
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue