Re: Re: PHP timezone is unstable...

From: Date: Tue, 10 Mar 2009 03:39:53 +0000
Subject: Re: Re: PHP timezone is unstable...
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-289747@lists.php.net to get a copy of this message
Nathan Rixham wrote:
Dirk wrote:
Nathan Rixham wrote:
Dirk wrote:
Hello, what could cause the timezone in PHP to, randomly, jump back and forth 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
you're not on multiple load balanced / dns round robin servers are you..?
no.. it's just a home server...
random.. home server is windows xp or vista, when you installed the os it was set to locale America/Chicago (control panel, locales) you then changed it to Europe/Sweden - as a developer you frequently hit a key combination by mistake which switches locale, and php picks it up to fix remove the extra america/chicago locale in control panel and problem sorted if thats it i'll eat my hat lol
also PHP shows the correct unix time... only the timezone is messed up by 6 hours now and then...

« previous php.general (#289747) next »