Message 53352 - Python tracker (original) (raw)

Logged In: YES user_id=85984

Mark,

To answer your question from a couple days ago, my exact requirements are: The ability to produce an rfc2822 compliant "Date" string that corresponds to the current value of 'TZ' in the environment.
I'm currently using email.Utils.formatdate() to produce the Date, but this breaks as soon as I set 'TZ' within my application. Setting 'TZ' from within Python is necessary. I don't currently know of a way to get around this problem as the breakage is in the lower level time module.

Again, mxDateTime is NOT an option. Whether it integrates nicely with Python and runs on many platforms is not relevant. I'm sure both of these facts are true, but I don't want my application to depend on any external packages. This complicates the installation procedure unnecessarily.