mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): zhihu posts pubDate (#8947)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const got = require('@/utils/got');
|
||||
const utils = require('./utils');
|
||||
const cheerio = require('cheerio');
|
||||
const { parseDate } = require('@/utils/parse-date');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const id = ctx.params.id;
|
||||
@@ -38,7 +39,7 @@ module.exports = async (ctx) => {
|
||||
title: String(item.title),
|
||||
description: item.content,
|
||||
link: item.url,
|
||||
pubDate: new Date(item.updated).toUTCString(),
|
||||
pubDate: parseDate(item.updated * 1000),
|
||||
})),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user