From 0a38947252fa96dbb1eb78fc90789fbcfeaca986 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Tue, 14 May 2013 18:15:58 +0200 Subject: [PATCH] Changed RFC822 dates --- feedgen/entry.py | 2 +- feedgen/feed.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/feedgen/entry.py b/feedgen/entry.py index c5ec77d..4f67918 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -191,7 +191,7 @@ class FeedEntry(object): if self.__rss_pubDate: pubDate = etree.SubElement(entry, 'pubDate') pubDate.text = self.__rss_pubDate.strftime( - '%a, %e %b %Y %H:%M:%S %z') + '%a, %d %b %Y %H:%M:%S %z') if extensions: for ext in self.__extensions.values() or []: diff --git a/feedgen/feed.py b/feedgen/feed.py index f03e58d..c1f9eae 100644 --- a/feedgen/feed.py +++ b/feedgen/feed.py @@ -284,14 +284,14 @@ class FeedGenerator(object): if self.__rss_lastBuildDate: lastBuildDate = etree.SubElement(channel, 'lastBuildDate') lastBuildDate.text = self.__rss_lastBuildDate.strftime( - '%a, %e %b %Y %H:%M:%S %z') + '%a, %d %b %Y %H:%M:%S %z') if self.__rss_managingEditor: managingEditor = etree.SubElement(channel, 'managingEditor') managingEditor.text = self.__rss_managingEditor if self.__rss_pubDate: pubDate = etree.SubElement(channel, 'pubDate') pubDate.text = self.__rss_pubDate.strftime( - '%a, %e %b %Y %H:%M:%S %z') + '%a, %d %b %Y %H:%M:%S %z') if self.__rss_rating: rating = etree.SubElement(channel, 'rating') rating.text = self.__rss_rating