See the putenv() function. For example to get the correct Eastern Standard
Time

http://www.php.net/putenv

<?php
    putenv('TZ=US/Eastern');
    echo 'Last modified: ' . date('d/m/y H:i', getlastmod());
?>

-- 
Jon Kriek
http://phpfreaks.com

"Php Webmaster" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I currently use:
>
> date("l jS F Y, g:i A");
>
> To format the current date/time to my personal preference.
>
> However, at 12:19 AM on my machine, date("l jS F Y, g:i A"); shows
4:19PM...
> 8 hours slow :(
>
> Any ideas on how to correct this? Am I right in saying that there is a
> timezone problem?
>
> Any ideas appreciated.

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

Reply via email to