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

From: Date: Wed, 06 Feb 2008 17:48:19 +0000
Subject: Re: date() and wrong timezone (or time)
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-268797@lists.php.net to get a copy of this message
Nathan Nobbe escribió:
On Feb 6, 2008 12:13 PM, Martin Marques <martin@marquesminen.com.ar> 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?

« previous php.general (#268797) next »