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                                       [EMAIL PROTECTED]
-- 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)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to