[Mailman-Users] Incorrect timezone in mailman-generated messages
Ivan Kuznetsov
kia at solvo.ru
Mon Oct 24 11:07:11 CEST 2011
Hello!
24.10.2011 12:32, Ivan Kuznetsov wrote:
> I will try to update the Python package and see the result
Updated Python (package python26-2.6.5-6.el5.i386.rpm) shows the same
incorrect results on interactive tests:
[kia at pine ~]$ python26
Python 2.6.5 (r265:79063, Feb 28 2011, 21:55:56)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time;
>>> import email.Utils;
>>> print (time.localtime());
time.struct_time(tm_year=2011, tm_mon=10, tm_mday=24, tm_hour=13,
tm_min=1, tm_sec=45, tm_wday=0, tm_yday=297, tm_isdst=0)
>>> print (time.altzone);
-14400
>>> print (time.daylight);
1
>>> print (email.Utils.formatdate(localtime=1));
Mon, 24 Oct 2011 13:02:02 +0300
>>>
--
С уважением, И.А.Кузнецов
Системный администратор "СОЛВО"
тел. +7 812 6060555
сотовый +7 921 7407261
ICQ 346624981
http://www.solvo.ru
More information about the Mailman-Users
mailing list