Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit db8ca449817491f9f11cecee864e910aeb19c7d5 1 parent e4671d1
@malcolmt malcolmt authored
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.
Something went wrong with that request. Please try again.