Re: Small problem with date and location information?

From: Date: Sun, 22 Jun 2003 04:43:53 +0000
Subject: Re: Small problem with date and location information?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152426@lists.php.net to get a copy of this message
On 22-Jun-2003 Philip J. Newman wrote: > I run a website from New Zealand. The problem is when <?php echo date("F > j, Y, g:i a"); ?> it shows the time of the server, that just happens to > be located in Dallas USA. Is there a way that I can change the time so it > matchs New Zealand Time? <?php echo date('F j, Y, g:i a'), '<br>'; putenv('TZ=PST8PDT'); echo date('F j, Y, g:i a'), '<br>'; putenv('TZ=CHAST'); echo date('F j, Y, g:i a'), '<br>'; ?> Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. (53kr33t w0rdz: sql table query)

« previous php.general (#152426) next »