diff --git a/newswire.py b/newswire.py index 53426c8ee..d1203dbbf 100644 --- a/newswire.py +++ b/newswire.py @@ -354,9 +354,12 @@ def parse_feed_date(pub_date: str, unique_string_identifier: str) -> str: try: published_date = date_from_string_format(pub_date2, [date_format]) except BaseException as exc: - if '.' not in pub_date2 and \ + if 'Z' not in pub_date and \ + 'EST' not in pub_date and \ + 'GMT' not in pub_date and \ + 'UT' not in pub_date and \ date_format == "%a, %d %b %Y %H:%M:%S": - errmsg = ' ' + str(exc) + errmsg = '| ' + pub_date2 + '| ' + str(exc) continue if published_date: