From e18267fc4d794d3212679b79cf601d442d80c5b2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 6 Jul 2011 13:02:01 -0600 Subject: [PATCH] ... --- src/calibre/ebooks/metadata/sources/identify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/sources/identify.py b/src/calibre/ebooks/metadata/sources/identify.py index 1c56dd4ef9..f92782bb3c 100644 --- a/src/calibre/ebooks/metadata/sources/identify.py +++ b/src/calibre/ebooks/metadata/sources/identify.py @@ -304,7 +304,7 @@ class ISBNMerge(object): ans.pubdate = r.pubdate break if getattr(ans.pubdate, 'year', None) == min_year: - min_date = datetime(min_year, ans.month, ans.day) + min_date = datetime(min_year, ans.pubdate.month, ans.pubdate.day) else: min_date = datetime(min_year, 1, 2, tzinfo=utc_tz) ans.pubdate = min_date