fix(route): bjnews wrong pubDate (#7096)

This commit is contained in:
Queensferry 2021-03-07 18:11:56 +08:00 committed by GitHub
parent e492277271
commit 8e9a2afd1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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,