Re: Strange problem with GMT on Solaris

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

Received on Wednesday, 10 May 1995 12:39:29 UTC