diff --git a/blog.py b/blog.py index 3ace8193..759865b3 100644 --- a/blog.py +++ b/blog.py @@ -260,10 +260,13 @@ def htmlBlogPostRSS(authorized: bool, \ if not restrictToDomain or \ (restrictToDomain and '/'+domain in messageLink): if postJsonObject['object'].get('summary'): + published=postJsonObject['object']['published'] + pubDate=datetime.strptime(published,"%Y-%m-%dT%H:%M:%SZ") titleStr=postJsonObject['object']['summary'] rssStr= ' ' rssStr+=' '+titleStr+'' rssStr+=' '+messageLink+'' + rssStr+=' '+pubDate.strftime("%D, %d %M %Y %H:%M:%S Z")+'' rssStr+=' ' return rssStr