This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: ctime problem (PR 939)
>>>>> Ulrich Drepper writes:
Uli> Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
>> Mike send us a bug report where he reported what looks like a strange
>> bug. For full details of the discussion so far, please read PR
>> libc/939.
>>
>> Calling the appended program with TZ set for Great Britain, ctime(0)
>> report 1 o'clock - but strftime report the right time:
Uli> Do you've looked at the timezone database sources?
Uli> # Zone NAME GMTOFF RULES FORMAT [UNTIL]
Uli> Zone Europe/London -0:01:15 - LMT 1847 Sep 22
Uli> 0:00 GB-Eire %s 1968 Oct 27
Uli> 1:00 - BST 1971 Oct 31 2:00u
Uli> 0:00 GB-Eire %s 1996
Uli> 0:00 EU GMT/BST
Uli> I.e., between 1968 and 1971 the UK used GMT+1. I.e., the results of
Uli> glibc are perfectly ok.
Argh. Yes, that make sense. I've noticed the rules but it never
occured to me that there was BST from 1968 until 1971:-(.
Thanks, I'm closing the report soonish.
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de