[8134] in www-talk@info.cern.ch
Strange problem with GMT on Solaris
daemon@ATHENA.MIT.EDU (Henrik Frystyk Nielsen)
Fri May 5 16:15:33 1995
Date: Fri, 5 May 1995 15:58:18 +0500
Errors-To: procmaster@www19.w3.org
Reply-To: frystyk@w3.org
From: frystyk@w3.org (Henrik Frystyk Nielsen)
To: Multiple recipients of list <www-talk@www10.w3.org>
I have a strange problem on Solaris:
The gmtime() function on Solaris seems to return the wrong value. It is one
hour ahead of GMT which means that all date header values in a HTTP request
or response is one hour ahead of GMT. This is for example the case on our
www.w3.org servers which certainly confuses a lot of caches!
It is simple to test:
time_t calendar = time(NULL);
struct tm *gmt = gmtime(&calendar);
strftime(buf, 40, "%a, %d %b %Y %H:%M:%S GMT", gmt);
Has anybody else heard of this problem?
-- cheers --
Henrik Frystyk frystyk@W3.org
World-Wide Web Consortium, Tel + 1 617 258 8143
MIT/LCS, NE43-356 Fax + 1 617 258 8682
77 Massachusetts Avenue
Cambridge MA 02154, USA