self.set_expires(600)
# Set correct content type
- self.set_header("Content-Type", "application/rss+xml")
+ self.set_header("Content-Type", "application/atom+xml")
# Render the feed
self.render("blog/feed.xml", posts=posts,
- now=email.utils.formatdate())
+ now=datetime.datetime.now())
class PostHandler(auth.CacheMixin, base.BaseHandler):