Re: date() and wrong timezone (or time)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 6, 2008 12:48 PM, Martin Marques <martin@xxxxxxxxxxxxxxxxxxx> wrote:> Nathan Nobbe escribió:> > On Feb 6, 2008 12:13 PM, Martin Marques <martin@xxxxxxxxxxxxxxxxxxx> wrote:> >> >>> see what you have as the value for the date.timezone ini setting.> >> I've already checked that, and it's not set.> >> >> > then you should probly set it ;)>> It has the right TZ set. I checked it with date_default_timezone_get().> I changed the system wide TZ to a zone that has the -2 TZ and it works> now, but it's a lousy solution>> >> > Anyway, I found out that PHP uses an internal tz database (very bad> >> IMHO) and it might be out of date.> >>> >> > what is a better alternative in your opinion; i dont know much about any> > alternatives..>> How about use the tzdata that is already installed is the system?>
It just depends. PHP5 had the latest time zone data for the US (thatchanged in 2007) long before the necessary updates were applied on anyof our systems (Windows or *nix). I'm not sure if that was because theOS updates weren't available yet or perhaps they simply had not beenapplied, but in that case it was sure nice that PHP handled the datescorrectly regardless of the OS. That said, I can certainly see anadvantage to having everything run from a well updated OS.
Andrew

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux