From 95a55af717e0b21fccbe0d979fee228e327e966e Mon Sep 17 00:00:00 2001 From: Sophist Date: Tue, 25 Jul 2017 13:57:45 +0100 Subject: [PATCH] Correct publication date which is one day out. --- recipes/private_eye.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/private_eye.recipe b/recipes/private_eye.recipe index 1ec56e7795..e9a20421e2 100644 --- a/recipes/private_eye.recipe +++ b/recipes/private_eye.recipe @@ -131,7 +131,7 @@ class PrivateEyeRecipe(BasicNewsRecipe): day = ''.join(c for c in day if c.isdigit()) date = datetime.strptime( " ".join((day, month, year)), "%d %B %Y") - date = date - timedelta(12) + date = date - timedelta(11) self.publication_date = datetime.strftime( date, "%d %B %Y").lstrip("0") self.log.debug("Publication date: %s" % self.publication_date)