fix(core): do not add optional pubdate when it is not available (#7093)

This commit is contained in:
NeverBehave
2021-03-02 19:06:17 -05:00
committed by GitHub
parent ec9afae012
commit 4aaccd7a49
-4
View File
@@ -48,10 +48,6 @@ module.exports = async (ctx, next) => {
}
}
if (!item.pubDate) {
item.pubDate = new Date().toISOString();
}
if (item.enclosure_length) {
const itunes_duration =
Math.floor(item.enclosure_length / 3600) + ':' + (Math.floor((item.enclosure_length % 3600) / 60) / 100).toFixed(2).slice(-2) + ':' + (((item.enclosure_length % 3600) % 60) / 100).toFixed(2).slice(-2);