RE: [PHP] gmdate
| From: | Thijs Lensselink | Date: | Fri, 19 Mar 2004 14:15:41 +0000 |
| Subject: | RE: [PHP] gmdate | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180961@lists.php.net to get a copy of this message | ||
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