in reply to Re: Website Date
in thread Website Date

Well that worked a treat. I think if I make it within 5 seconds it will work ok. Now I just have to figure out if it's really the website's server that determines the time or if it's something else. Thanks for your help.

Replies are listed 'Best First'.
Re^3: Website Date
by afoken (Chancellor) on May 17, 2012 at 08:33 UTC
    Now I just have to figure out if it's really the website's server that determines the time or if it's something else.

    The Date header is set by the webserver, but it may have been changed by any proxy between the webserver and the client. Usually, proxies do not touch the date header, simply because there is no need. The webserver usually just asks the operating system for its idea of the current time, because that's the easiest way to implement it. So, when you request any webserver and read the Date header from the response, you will most times see the operating system's idea of the current time, plus some fractions of a second for transport through the networks.

    The only notable exceptions are embedded systems without the need for time keeping and thus without any reliable time source, they either omit the Date header or send some nonsense, like 1970-01-01 00:00:00 + uptime.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)