diff --git a/tests.py b/tests.py index fc8d9d739..d23a0869f 100644 --- a/tests.py +++ b/tests.py @@ -2437,6 +2437,10 @@ def testFirstParagraphFromString(): def testParseFeedDate(): print('testParseFeedDate') + pubDate = "2020-12-14T00:08:06+00:00" + publishedDate = parseFeedDate(pubDate) + assert publishedDate == "2020-12-14 00:08:06+00:00" + pubDate = "Tue, 08 Dec 2020 06:24:38 -0600" publishedDate = parseFeedDate(pubDate) assert publishedDate == "2020-12-08 12:24:38+00:00"