From ec87fbf4f8949b2ad0b84e3bf5e6b8fbebe7d1b3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 14 Dec 2020 15:17:30 +0000 Subject: [PATCH] Date test --- tests.py | 4 ++++ 1 file changed, 4 insertions(+) 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"