time.strftime() NOT producing RFC2822-compliant Date strings?
peter at engcorp.com
Fri Jan 13 04:07:01 CET 2006
> I'm just dealing with a Roundup bug report in which it's pointed out that
> time.strftime() doesn't produce RFC2822-compliant date strings when in a
> locale other than "C".
While it doesn't fix strftime() (though a change to the docs might do
that <wink>), using email.Utils.formatdate() appears likely to fix your
immediate problem, not to mention looking cleaner.
More information about the Python-list