W3C home > Mailing lists > Public > www-talk@w3.org > May to June 1995

Re: Strange problem with GMT on Solaris

From: David Robinson <drtr1@cam.ac.uk>
Date: Wed, 10 May 95 17:34 BST
Message-Id: <m0s9EiI-0007aFC@grus.cus.cam.ac.uk>
To: frystyk@w3.org
Cc: 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.
Received on Wednesday, 10 May 1995 12:39:29 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:17 UTC