diff --git a/lib/routes/bjnews/news.js b/lib/routes/bjnews/news.js index fd5b69510..19c7096c3 100644 --- a/lib/routes/bjnews/news.js +++ b/lib/routes/bjnews/news.js @@ -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,