Date format test

main
Bob Mottram 2023-06-27 22:12:18 +01:00
parent 8fc6a3c0b6
commit 4d447f3cbc
1 changed files with 4 additions and 0 deletions

View File

@ -4722,6 +4722,10 @@ def _test_parse_newswire_feed_date():
unique_string_identifier = 'some string abcd'
pub_date = "Fri, 16 Jun 2023 18:54:23 +0000"
published_date = parse_feed_date(pub_date, unique_string_identifier)
assert published_date == "2023-06-16 18:54:23+00:00"
pub_date = "2020-12-14T00:08:06+00:00"
published_date = parse_feed_date(pub_date, unique_string_identifier)
assert published_date == "2020-12-14 00:08:06+00:00"