Re: PHP timezone is unstable...

From: Date: Tue, 10 Mar 2009 02:52:46 +0000
Subject: Re: PHP timezone is unstable...
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-19633@lists.php.net to get a copy of this message
seems ur TZ env variable is jumping back and forth. http://in2.php.net/manual/en/function.date-default-timezone-get.php i recommend using date_default_timezone_set()<http://in2.php.net/manual/en/function.date-default-timezone-set.php>on top of all u r scripts while u find out what's wrong with u r env variables. Kranthi. On Tue, Mar 10, 2009 at 06:56, Dirk <noisyb@gmx.net> wrote: > Hello, > > what could cause the timezone in PHP to, randomly, jump back 6 hours now > and then? > > > from phpinfo(): > > > date > date/time support enabled > "Olson" Timezone Database Version 0.system > Timezone Database internal > Default timezone America/Chicago > > Directive Local Value Master Value > date.default_latitude 31.7667 31.7667 > date.default_longitude 35.2333 35.2333 > date.sunrise_zenith 90.583333 90.583333 > date.sunset_zenith 90.583333 90.583333 > date.timezone Europe/Sweden Europe/Sweden > > > "Default timezone" jumps between "America/Chicago" and > "Europe/Berlin" > while "date.timezone" stays "Europe/Sweden" all the time... > > > Dirk >

« previous php.install (#19633) next »