Vitja Makarov added the comment:
I'm not quite sure. The problem is email.utils.formatdate doesn't respect TZ
info changes since it uses time.timezone (or time.altzone) for utc offset.
Btw it seems that issue 665194 should fix t
Vitja Makarov added the comment:
Perhaps it's better to calculate utc-offset for each timestamp cause we never
know what is correct timezone for given time.
That could be done in C:
localtime, utc_offset = time.localtime_ex(t)
Where localtime is the same as returned by localtime(
Vitja Makarov added the comment:
We have the same issue in Russia (MSK timezone). It seems to be related to
recent changes in timezone info.
It looks like time.timezone is calculated incorrectly.
You can test that with attached script:
$ TZ=Europe/Moscow python /tmp/test_tz.py
-10800 -14400