RE: [PHP] Fixing timezone issues
| From: | Brian V Bonini | Date: | Tue, 13 Aug 2002 18:59:10 +0000 |
| Subject: | RE: [PHP] Fixing timezone issues | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112402@lists.php.net to get a copy of this message | ||
You should really fix it at the core of the issue but...
putenv("TZ=EST5EDT");
will work..
-Brian
> -----Original Message-----
> From: H. Wade Minter [mailto:minter@lunenburg.org]
> Sent: Tuesday, August 13, 2002 2:44 PM
> To: php-general@lists.php.net
> Subject: [PHP] Fixing timezone issues
>
>
> At some point recently, PHP/Apache running on FreeBSD decided that i'm on
> GMT, instead of EST5EDT. The system date is correct:
>
> bash-2.05a# date
> Tue Aug 13 14:39:37 EDT 2002
>
> But phpinfo() shows me:
>
> _ENV["TZ"] GMT
>
> What's the best way to get PHP thinking I'm in eastern time again?
>
> Thanks,
> Wade
>
>
>
> --
> If you have a VCR or MP3 player, you need to read these links:
>
> http://www.digitalconsumer.org/
> http://digitalspeech.org/
> http://www.libertyboard.org/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>