time.strftime() NOT producing RFC2822-compliant Date strings?

Peter Hansen peter at engcorp.com
Thu Jan 12 22:07:01 EST 2006


richard wrote:
> 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.

-Peter




More information about the Python-list mailing list