ctime problem (PR 939)

Ulrich Drepper drepper@cygnus.com
Mon Feb 1 09:56:00 GMT 1999


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:

Do you've looked at the timezone database sources?

# Zone	NAME		GMTOFF	RULES	FORMAT	[UNTIL]
Zone	Europe/London	-0:01:15 -	LMT	1847 Sep 22
			 0:00	GB-Eire	%s	1968 Oct 27
			 1:00	-	BST	1971 Oct 31 2:00u
			 0:00	GB-Eire	%s	1996
			 0:00	EU	GMT/BST

I.e., between 1968 and 1971 the UK used GMT+1.  I.e., the results of
glibc are perfectly ok.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Libc-hacker mailing list