jgonyea / grav-plugin-podcast

GravCMS plugin that creates podcast channel and podcast episode page templates along with a podcast RSS feed.
MIT License
18 stars 7 forks source link

update pubDate to correct format in rss #27

Closed marywarrington closed 4 years ago

marywarrington commented 4 years ago

date formatting was thrown off by including Z, which breaks on Spotify (and others). Z could change to O, or the format altogether could just be r, making it into the required RFC 2822 date format.

jgonyea commented 4 years ago

I'm away from my pc right now. What does the 'r' do?

marywarrington commented 4 years ago

'r' makes the datetime format RFC 2822, which is what most podcast aggregators want (e.g. 'Thu, 20 Dec 2018 15:00:40 +0200'.

The way it currently is, that last part (+0200) is actually converted to seconds, which makes Spotify decline the feed.