From c344c42a7d828f71aaf3ee8c5b748b2fbcfa0596 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 14 Feb 2018 03:18:40 +0530 Subject: [PATCH] ... --- src/calibre/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/__init__.py b/src/calibre/__init__.py index c3039794b8..39180615c3 100644 --- a/src/calibre/__init__.py +++ b/src/calibre/__init__.py @@ -550,7 +550,7 @@ def strftime(fmt, t=None): else: ans = time.strftime(fmt, t).decode(preferred_encoding, 'replace') if early_year: - ans = ans.replace('_early year hack##', str(orig_year)) + ans = ans.replace(u'_early year hack##', unicode(orig_year)) return ans