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
@@ -25,7 +25,7 @@ for post in list_posts:
try:
date_post = time.strptime(post[1], '%d/%m/%Y %H:%M:%S')
except:
print(title +'-- Posted at: '+ post[1] + ' Not modified: The date is not in the old format')
print(title +'-- Posted at: '+ str(post[1]) + ' Not modified: The date is not in the old format')
newDatePost = post[1]
else:
newDatePost = time.strftime("%Y-%m-%d %H:%M:%S", date_post)
@@ -33,7 +33,7 @@ for post in list_posts:
try:
last_updated_post = time.strptime(post[2], '%d/%m/%Y %H:%M:%S')
except:
print(title + '-- Updated at '+ post[2] + ' Not modified: The date is not in the old format')
print(title + '-- Updated at '+ str(post[2]) + ' Not modified: The date is not in the old format')
newDateUpdatedPost = post[2]
else:
newDateUpdatedPost = time.strftime("%Y-%m-%d %H:%M:%S", last_updated_post)