[Bug libc/4033] mktime bug in Europe/Lisbon timezone

sergio at sergiomb dot no-ip dot org sourceware-bugzilla@sourceware.org
Thu Feb 22 05:20:00 GMT 2007


------- Additional Comments From sergio at sergiomb dot no-ip dot org  2007-02-22 05:19 -------
ok this is a bug in bug in Europe/Lisbon timezone because if I change to
timezone of New York, you don't see it. And only when date is before 1976/9/26
I will try to prove this here so don't close the bug with see all comments .
First python
set your system timezone in WET (Western Europe Time) 

>>> import time,datetime
>>> time.mktime((1976, 9, 26, 0, 0, 0, 0, 0, 0))
212544000.0
>>> time.mktime((1976, 9, 26, 0, 0, 0, 0, 0, 1))
212540400.0
>>> time.mktime((1976, 9, 27, 0, 0, 0, 0, 0, 0))
212630400.0
>>> time.mktime((1976, 9, 27, 0, 0, 0, 0, 0, 1))
212626800.0
#until here fine
>>> time.mktime((1976, 9, 26, 0, 0, 0, 0, 0, 0))
212540400.0
>>> time.mktime((1976, 9, 26, 0, 0, 0, 0, 0, 1))
212540400.0
# same time with or without dst
>>> time.mktime((1970, 1, 1, 0, 0, 0, 0, 0, 1))
-3600.0
>>> time.mktime((1970, 1, 1, 0, 0, 0, 0, 0, 0))
-3600.0
# Zero time give me always -1 hour !
>>> time.mktime((1976, 9, 27, 0, 0, 0, 0, 0, 0))
212630400.0
>>> time.mktime((1976, 9, 27, 0, 0, 0, 0, 0, 1))
212626800.0
# 27 of Dez correct no problem again  

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |


http://sourceware.org/bugzilla/show_bug.cgi?id=4033

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Glibc-bugs mailing list