Re: [PHP] Fixing timezone issues

2002-08-13 Thread Rasmus Lerdorf
Fix your Apache startup environment so TZ is set correctly. On Tue, 13 Aug 2002, H. Wade Minter wrote: 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

Re: [PHP] Fixing timezone issues

2002-08-13 Thread H. Wade Minter
On Tue, 13 Aug 2002, Rasmus Lerdorf wrote: Fix your Apache startup environment so TZ is set correctly. I've got this in the apache startup script, but it's still on GMT: bash-2.05a# head /usr/local/etc/rc.d/apache.sh #!/bin/sh TZ=EST5EDT; export TZ case $1 in start) [ -x

RE: [PHP] Fixing timezone issues

2002-08-13 Thread Brian V Bonini
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

Re: [PHP] Fixing timezone issues

2002-08-13 Thread Rasmus Lerdorf
Well, now you are getting into system configuration issues. You need to figure out why your TZ is getting ignored and where GMT is coming from in your environment. I don't think this has anything to do with PHP. -Rasmus On Tue, 13 Aug 2002, H. Wade Minter wrote: On Tue, 13 Aug 2002, Rasmus