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: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Feb 2007 15:52:20 -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 jakub at redhat dot com 2007-02-22 15:52 -------
FYI, that time isn't actually a DST switch, but just switching the GMT offset
of the timezone for non-DST time:
Europe/Lisbon Sun Oct 3 01:59:59 1965 UTC = Sun Oct 3 02:59:59 1965 WEST
isdst=1 gmtoff=3600
Europe/Lisbon Sun Oct 3 02:00:00 1965 UTC = Sun Oct 3 02:00:00 1965 WET
isdst=0 gmtoff=0
Europe/Lisbon Sun Apr 3 01:59:59 1966 UTC = Sun Apr 3 01:59:59 1966 WET
isdst=0 gmtoff=0
Europe/Lisbon Sun Apr 3 02:00:00 1966 UTC = Sun Apr 3 03:00:00 1966 WET
isdst=0 gmtoff=3600
Europe/Lisbon Sat Sep 25 23:59:59 1976 UTC = Sun Sep 26 00:59:59 1976 WET
isdst=0 gmtoff=3600
Europe/Lisbon Sun Sep 26 00:00:00 1976 UTC = Sun Sep 26 00:00:00 1976 WET
isdst=0 gmtoff=0
Europe/Lisbon Sat Mar 26 23:59:59 1977 UTC = Sat Mar 26 23:59:59 1977 WET
isdst=0 gmtoff=0
Europe/Lisbon Sun Mar 27 00:00:00 1977 UTC = Sun Mar 27 01:00:00 1977 WEST
isdst=1 gmtoff=3600
As such, you can't rely on tm_isdst here to pick one or the other time,
Sep 26 00:30:00 1976 WET has ambiguous translation into seconds since epoch.
--
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.