[EMAIL PROTECTED] (Bigmark) wrote in news:[EMAIL PROTECTED]:
> 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! > >From the looks of the code, it is intended to show time in GMT - ie, Greenwich Mean Time which is coincidentally 8 hours behind Sandgroper time. If you want local time, change gmdate to date, and get rid of the GMT at the end so you don't confuse the people at the viewing end. You might want to have a look at http://au.php.net/date and http://au.php.net/gmdate for more information on the date and gmdate functions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php