[8202] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: Strange problem with GMT on Solaris

daemon@ATHENA.MIT.EDU (David Robinson)
Wed May 10 13:17:26 1995

Date: Wed, 10 May 1995 12:53:00 +0500
Errors-To: procmaster@www19.w3.org
Reply-To: drtr1@cam.ac.uk
From: drtr1@cam.ac.uk (David Robinson)
To: Multiple recipients of list <www-talk@www10.w3.org>

>I have a strange problem on Solaris:
Which version?

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

I have seen a similar problem under Solaris 2.3; gmtime would include the
hour for daylight saving time.

That problem does not exist under Solaris 2.4.

 David Robinson.

home help back first fref pref prev next nref lref last post