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

This commit is contained in:
Queensferry
2021-03-07 05:11:56 -05:00
committed by GitHub
parent e492277271
commit 8e9a2afd1b
+2 -1
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,