[issue11024] imaplib: Time2Internaldate() returns localized strings

Alexander Belopolsky report at bugs.python.org
Fri Jan 28 21:31:02 CET 2011


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Fri, Jan 28, 2011 at 2:44 PM, Alexander Belopolsky
<report at bugs.python.org> wrote:
..
> Also, isn't day supposed to be space- rather than 0- padded?

To the best of my understanding, rfc 2060 requires space-padded day
(strftime code %e):

"""
date_day_fixed  ::= (SPACE digit) / 2digit
                    ;; Fixed-format version of date_day
...
date_time       ::= <"> date_day_fixed "-" date_month "-" date_year
                    SPACE time SPACE zone <">
...
msg_att         ::= ...
                    "INTERNALDATE" SPACE date_time /
...
"""

See http://tools.ietf.org/html/rfc2060.html

----------

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


More information about the Python-bugs-list mailing list