Alexander Belopolsky added the comment:

> Is it possible to set timezone based on localtime(current_time) where 
> current_time is the result of time() call?

No. time.timezone is a constant it cannot change with time.  This is a 
limitation of the POSIX and C standards on which time module is based.

> For example, my mail sending program uses 
> `email.utils.formatdate(localtime=True)', and that is returning a time one 
> hour in the past currently.

I thought email.utils.formatdate was fixed in 3.x series.  Can you report this 
as a separate issue?

----------
nosy: +barry, r.david.murray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22752>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to