Pass the rss validator
This commit is contained in:
+2
-2
@@ -302,7 +302,7 @@ def viewauthorrss(author):
|
||||
# Build date to RFC822 format
|
||||
date_post = time.strptime(post[4], "%Y-%m-%d %H:%M:%S")
|
||||
posts=[dict(title_id=post[0], title=post[1], subtitle=post[2], content=markdown(post[3], extensions=MARKDOWN_EXT),
|
||||
creation_date=time.strftime("%a, %d %b %Y %H:%M:%S", date_post) + time.strftime(' %Z'),
|
||||
creation_date=time.strftime("%a, %d %b %Y %H:%M:%S", date_post) + time.strftime(' %z'),
|
||||
author=post[5], status=post[6])] + posts
|
||||
|
||||
resp = make_response(render_template('blog_rss.xml',
|
||||
@@ -371,7 +371,7 @@ def viewrss():
|
||||
# Build date to RFC822 format
|
||||
date_post = time.strptime(post[4], "%Y-%m-%d %H:%M:%S")
|
||||
posts=[dict(title_id=post[0], title=post[1], subtitle=post[2], content=markdown(post[3], extensions=MARKDOWN_EXT),
|
||||
creation_date=time.strftime("%a, %d %b %Y %H:%M:%S", date_post) + time.strftime(' %Z'),
|
||||
creation_date=time.strftime("%a, %d %b %Y %H:%M:%S", date_post) + time.strftime(' %z'),
|
||||
author=post[5], status=post[6])] + posts
|
||||
|
||||
resp = make_response(render_template('blog_rss.xml',
|
||||
|
||||
Reference in New Issue
Block a user