[issue22752] incorrect time.timezone value

2014-10-28 Thread matrokhin oleg
matrokhin oleg added the comment: $ date -R Tue, 28 Oct 2014 17:27:54 +0300 $ python -c "import time; print time.timezone" -14400 -- ___ Python tracker <http://bugs.python.o

[issue22752] incorrect time.timezone value

2014-10-28 Thread matrokhin oleg
New submission from matrokhin oleg: There was timezone change in Russia at 26 october (http://www.timeanddate.com/time/change/russia/moscow) But code in timemodule.c using first day of the year to get timezone t = (time((time_t *)0) / YEAR) * YEAR; p = localtime(&a