Pass the rss validator

This commit is contained in:
2026-10-31 02:09:21 +01:00
parent 689c142d2e
commit 73e3b67df2
3 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -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',