This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4033] mktime bug in Europe/Lisbon timezone
- From: "sergio at sergiomb dot no-ip dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Feb 2007 05:19:55 -0000
- Subject: [Bug libc/4033] mktime bug in Europe/Lisbon timezone
- References: <20070213141801.4033.cvalente@spambob.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.