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: 15 Feb 2008 17:31:08 -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 2008-02-15 17:31 -------
export TZ=WET; date
Fri Feb 15 17:20:17 WET 2008
python
>>> import time
>>> time.mktime((1970, 1, 1, 0, 0, 0, 3, 1, 0))
0.0
(right !)
unset TZ; date (this is the usual case)
Fri Feb 15 17:21:55 WET 2008
(see same TZ, I am in WET timezone )
python
>>> import time
>>> time.mktime((1970, 1, 1, 0, 0, 0, 3, 1, 0))
-3600.0
So can you explain when TZ is not set , PORTUGAL is one hour delayed to the rest
of the world ?
Many sites and blogs, when date are 0 from epoch, in Portugal, appears
31 Dec 1969 at 23 hours (1969, 12, 31, 23, 0, 0, 2, 365, 0).
when system use Linux of course !
--
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.