This commit is contained in:
Kovid Goyal 2018-02-14 03:18:40 +05:30
parent ae4cd7c902
commit c344c42a7d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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