This commit is contained in:
Kovid Goyal 2017-07-25 22:04:32 +05:30
commit c81c016b8f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -131,7 +131,7 @@ class PrivateEyeRecipe(BasicNewsRecipe):
day = ''.join(c for c in day if c.isdigit()) day = ''.join(c for c in day if c.isdigit())
date = datetime.strptime( date = datetime.strptime(
" ".join((day, month, year)), "%d %B %Y") " ".join((day, month, year)), "%d %B %Y")
date = date - timedelta(12) date = date - timedelta(11)
self.publication_date = datetime.strftime( self.publication_date = datetime.strftime(
date, "%d %B %Y").lstrip("0") date, "%d %B %Y").lstrip("0")
self.log.debug("Publication date: %s" % self.publication_date) self.log.debug("Publication date: %s" % self.publication_date)