mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 19:16:07 +01:00
Fix another regression in the news fetching code
This commit is contained in:
parent
cd783b6936
commit
cbf7c8bf8c
1 changed files with 2 additions and 2 deletions
|
|
@ -125,8 +125,8 @@ def __init__(self):
|
|||
def generate(self, title, datefmt, feeds):
|
||||
if isinstance(datefmt, unicode):
|
||||
datefmt = datefmt.encode(preferred_encoding)
|
||||
date = datetime.datetime.now().strftime(datefmt)
|
||||
date = date.decode(preferred_encoding, 'replace')
|
||||
date = datetime.datetime.now().strftime(datefmt)
|
||||
date = date.decode(preferred_encoding, 'replace')
|
||||
return Template.generate(self, title=title, date=date, feeds=feeds)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue