From 425e3f506491422659a5feaf137459c9cbf4ca28 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 18 Jan 2023 11:50:49 +0000 Subject: [PATCH] Another date format --- newswire.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newswire.py b/newswire.py index d80e7546b..46df4c034 100644 --- a/newswire.py +++ b/newswire.py @@ -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",