fix: smzdm ranking pubDate

This commit is contained in:
DIYgod 2020-09-25 12:52:11 +08:00
parent 7e777bbb56
commit c50145d2bd
No known key found for this signature in database
GPG Key ID: D159328F47A80DCA
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
const got = require('@/utils/got');
const date = require('@/utils/date');
module.exports = async (ctx) => {
const { rank_type, rank_id, hour } = ctx.params;
@ -31,7 +32,7 @@ module.exports = async (ctx) => {
item: list.map((item) => ({
title: `${item.article_title} - ${item.article_price}`,
description: `${item.article_title} - ${item.article_price}<br><img src="${item.article_pic}">`,
pubDate: new Date(item.article_pubdate).toUTCString(),
pubDate: date(item.article_pubdate, 8),
link: item.article_url,
})),
};