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:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 2:44 PM
> To: [EMAIL PROTECTED]
> 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
> 
> 

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

Reply via email to