Discussion:
[PHP-INSTALL] PHP timezone is unstable...
Dirk
2009-03-10 01:26:26 UTC
Permalink
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
kranthi
2009-03-10 02:52:46 UTC
Permalink
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.
Post by Dirk
Hello,
what could cause the timezone in PHP to, randomly, jump back 6 hours now
and then?
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
Loading...