Pass the rss validator
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user