Re: [PHP-INSTALL] PHP timezone is unstable...

[email protected] (kranthi)
Newsgroups php.install
Message-ID <[email protected]>
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 <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.