mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: smzdm ranking pubDate
This commit is contained in:
@@ -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,
|
||||
})),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user