[issue11024] imaplib: Time2Internaldate() returns localized strings

Sebastian Spaeth report at bugs.python.org
Thu Jan 27 14:40:10 CET 2011


Sebastian Spaeth <sebastian at sspaeth.de> added the comment:

P.S. To replicate this in ipython:

import locale, imaplib

locale.setlocale(locale.LC_ALL,'de_CH.utf8')
imaplib.Time2Internaldate(220254431)
Out[1]: '"24-Dez-1976 06:47:11 +0100"'

(Note the German 'Dez' rather than 'Dec')

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11024>
_______________________________________


More information about the Python-bugs-list mailing list