August 14th, 2000, 03:31 PM
Hi, I have this piece of code to get this piece of code, but it returns the time as an hour behind what it should be. Can anyone tell me why and how I avoid it?
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
echo "Date ".date("d/m/Y H:i:s")." in ".getenv ("TZ")."n";[/code]
August 15th, 2000, 10:00 AM
I think that means the system time of the system your webpage is located on, is set wrong.
August 15th, 2000, 10:17 AM
The time on the server is set to EDT and seems to be accurate to that time zone, the maillogs all accurate to EDT etc.
August 15th, 2000, 10:31 AM
I haven't really got an idea of how those time zones are set, but i'm quite sure there's nothing wrong with your code.
August 15th, 2000, 10:45 AM
Could this be something to do with the fact that we are operating on summer time which is an hour forwards? The time will be switched an hour back in winter so the times will then match up. Is there a way round this?
August 15th, 2000, 11:13 AM
This is where my help stops ;(
I haven't got a clue.