Correct publication date which is one day out.

This commit is contained in:
Sophist 2017-07-25 13:57:45 +01:00 committed by GitHub
parent d511b7c12b
commit 95a55af717

View File

@ -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)