Hotfix: laosiji feed pubDate (#1205)

Closed #1204
This commit is contained in:
凉凉 2018-12-10 11:23:30 +08:00 committed by DIYgod
parent fd3c89167f
commit eabe3ff173
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
const axios = require('../../utils/axios');
const parseDate = require('../../utils/date');
module.exports = async (ctx) => {
const response = await axios({
@ -16,7 +17,7 @@ module.exports = async (ctx) => {
title,
link: `http://www.laosiji.com/thread/${resourceid}.html`,
description: `<img referrerpolicy="no-referrer" src="${image.url}">`,
pubDate: publishtime,
pubDate: parseDate(publishtime, 8),
})),
};
};