mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 14:04:49 +01:00
...
This commit is contained in:
commit
cc21954d66
1 changed files with 2 additions and 1 deletions
|
|
@ -305,7 +305,8 @@ def merge(self, results, min_year, do_asr=True):
|
|||
ans.pubdate = r.pubdate
|
||||
break
|
||||
if getattr(ans.pubdate, 'year', None) == min_year:
|
||||
min_date = datetime(min_year, ans.pubdate.month, ans.pubdate.day)
|
||||
min_date = datetime(min_year, ans.pubdate.month, ans.pubdate.day,
|
||||
tzinfo=utc_tz)
|
||||
else:
|
||||
min_date = datetime(min_year, 1, 2, tzinfo=utc_tz)
|
||||
ans.pubdate = min_date
|
||||
|
|
|
|||
Loading…
Reference in a new issue