This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]