Re: Re: PHP timezone is unstable...
| From: | Dirk | 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:also PHP shows the correct unix time... only the timezone is messed up by 6 hours now and then...Nathan Rixham wrote: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 lolDirk wrote:no.. it's just a home server...Hello, what could cause the timezone in PHP to, randomly, jump back and forth 6 hours now and then? from phpinfo(): dateyou're not on multiple load balanced / dns round robin servers are you..?date/time support enabled "Olson" Timezone Database Version 0.system Timezone Database internal Default timezone America/ChicagoDirective 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