Browse files

Fixed #3958 -- Added lastBuildDate element to RSS feeds. Thanks,

baptiste.goupil@gmail.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e4671d1 commit db8ca449817491f9f11cecee864e910aeb19c7d5 @malcolmt malcolmt committed Apr 9, 2007
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/utils/feedgenerator.py
View
1 django/utils/feedgenerator.py
@@ -132,6 +132,7 @@ def write(self, outfile, encoding):
handler.addQuickElement(u"category", cat)
if self.feed['feed_copyright'] is not None:
handler.addQuickElement(u"copyright", self.feed['feed_copyright'])
+ handler.addQuickElement(u"lastBuildDate", rfc2822_date(self.latest_post_date()).decode('ascii'))
self.write_items(handler)
self.endChannelElement(handler)
handler.endElement(u"rss")

0 comments on commit db8ca44

Please sign in to comment.