From ad29e2f44ab1ca71f61582c5facaf2eb1b10caca Mon Sep 17 00:00:00 2001 From: Mary Warrington Date: Thu, 2 Jan 2020 15:14:14 -0800 Subject: [PATCH] update pubDate to correct format in rss 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. --- templates/feed.rss.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/feed.rss.twig b/templates/feed.rss.twig index 3e98c4b..d69b098 100644 --- a/templates/feed.rss.twig +++ b/templates/feed.rss.twig @@ -41,7 +41,7 @@ {{base_url_absolute}}/{{episode.header.podcast.audio.meta.guid|absolute_url}} {% endif %} -{{ episode.header.publish_date ? episode.header.publish_date|date('D, d M Y H:i:s Z') : episode.date|date('D, d M Y H:i:s Z')}} +{{ episode.header.publish_date ? episode.header.publish_date|date('r') : episode.date|date('r')}} {{episode.header.podcast.audio.meta.duration}} {{episode.header.podcast.itunes.explicit}} @@ -49,4 +49,4 @@ {% endfor %} -{% endif %} \ No newline at end of file +{% endif %}