BigMark wrote on vrijdag 19 maart 2004 14:58:

> Hi an anyone help here, i have a shoutbox that displays the time with
> each message but the time is 8 hours behind my time.
> 
> //here are the headers//
> header("Expires: ".gmdate("D, d M Y H:i:s")."GMT");
> header("Cache-Control: no-cache, must-revalidate");
> header("Pragma: no-cache");
> 
> I have tried a few things but they didnt work and the coder hasnt
> replied, i live in Perth Western Australia
> 
> thankyou!

Hey BigMark,
 
Think this will do the trick
 
$timezone=3600*8; // GMT + 8
$date = gmdate("D M Y H:i", time() + $timezone);
 
MvG,
Thijs

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

Reply via email to