fix: smzdm ranking pubDate
This commit is contained in:
parent
7e777bbb56
commit
c50145d2bd
|
|
@ -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,
|
||||
})),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue