mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
commit
cc21954d66
@ -305,7 +305,8 @@ class ISBNMerge(object):
|
|||||||
ans.pubdate = r.pubdate
|
ans.pubdate = r.pubdate
|
||||||
break
|
break
|
||||||
if getattr(ans.pubdate, 'year', None) == min_year:
|
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:
|
else:
|
||||||
min_date = datetime(min_year, 1, 2, tzinfo=utc_tz)
|
min_date = datetime(min_year, 1, 2, tzinfo=utc_tz)
|
||||||
ans.pubdate = min_date
|
ans.pubdate = min_date
|
||||||
|
Loading…
x
Reference in New Issue
Block a user