http://in2.php.net/manual/en/function.date-default-timezone-get.php
i recommend using date_default_timezone_set() 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@xxxxxxx> 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
- References:
- PHP timezone is unstable...
- From: Dirk
- PHP timezone is unstable...
- Prev by Date: PHP timezone is unstable...
- Next by Date: compile libphp5.so: library way too heavy
- Previous by thread: PHP timezone is unstable...
- Next by thread: compile libphp5.so: library way too heavy
- Index(es):