From b46232191a828fc933803a41ed882796bff4d4fd Mon Sep 17 00:00:00 2001 From: UniQMG522 <48872143+UniQMG522@users.noreply.github.com> Date: Tue, 5 Oct 2021 02:13:50 -0700 Subject: [PATCH] fix(route)(firefox): route for firefox addons (#7239) Co-authored-by: NeverBehave --- lib/routes/firefox/addons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/firefox/addons.js b/lib/routes/firefox/addons.js index 15cf355b02..e5756e11b2 100644 --- a/lib/routes/firefox/addons.js +++ b/lib/routes/firefox/addons.js @@ -24,7 +24,7 @@ module.exports = async (ctx) => { title: version, description: versionInfo.releaseNotes || '', link: `https://addons.mozilla.org/zh-CN/firefox/addon/${id}/versions/`, - pubDate: new Date(versionInfo.platformFiles.all.created).toUTCString(), + pubDate: new Date(versionInfo.file.created), guid: version, author: info.authors.map((author) => author.name).join(', '), };