From 7588fc82a446ecf8008195b9201a8a6ff9117ef7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 18 Jan 2023 12:03:23 +0000 Subject: [PATCH] Show original date --- newswire.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index 807ab6572..fb0ee6e53 100644 --- a/newswire.py +++ b/newswire.py @@ -302,6 +302,7 @@ 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) + orig_pub_date = pub_date if pub_date.endswith('+:'): pub_date = pub_date.replace('+:', 'Z') @@ -370,7 +371,7 @@ def parse_feed_date(pub_date: str, unique_string_identifier: str) -> str: if not pub_date_str.endswith('+00:00'): pub_date_str += '+00:00' else: - print('WARN: unrecognized date format: ' + pub_date) + print('WARN: unrecognized date format: ' + orig_pub_date) return pub_date_str