Another date format

merge-requests/30/head
Bob Mottram 2023-01-18 11:50:49 +00:00
parent 1749cbe1a9
commit 425e3f5064
1 changed files with 3 additions and 0 deletions

View File

@ -302,6 +302,9 @@ def parse_feed_date(pub_date: str, unique_string_identifier: str) -> str:
':' + str(rand_min).zfill(2) + ':' + str(rand_sec).zfill(2)
pub_date = pub_date.replace(':00:00', replace_time_str)
if pub_date.endswith('+:'):
pub_date = pub_date.replace('+:', ' Z')
formats = ("%a, %d %b %Y %H:%M:%S %z",
"%a, %d %b %Y %H:%M:%S Z",
"%a, %d %b %Y %H:%M:%S GMT",