#40202 [Bgs->Opn]: Arizona timezone detected as America/Denver

From: Date: Tue, 23 Jan 2007 14:15:42 +0000
Subject: #40202 [Bgs->Opn]: Arizona timezone detected as America/Denver
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107935@lists.php.net to get a copy of this message
ID: 40202 User updated by: ajb at blyler dot cc Reported By: ajb at blyler dot cc -Status: Bogus +Status: Open Bug Type: *General Issues Operating System: Linux PHP Version: 5.2.0 New Comment: Setting the time zone in the php.ini file works just fine. But why doesn't php detect that /etc/localtime is set to Arizona's time zone? I would think that php would detect Arizona's time zone as America/Phoenix and not America/Denver. Since these time zones are different. Previous Comments: ------------------------------------------------------------------------ [2007-01-23 08:15:27] derick@php.net So set the correct time zone in php.ini: http://no.php.net/manual/en/ref.datetime.php#ini.date.timezone ------------------------------------------------------------------------ [2007-01-23 04:41:20] ajb at blyler dot cc Description: ------------ When the timezone (/etc/localtime) is set to Arizona time a call to date_default_timezone_get() returns America/Denver. Which causes the date/time functions in php to incorrectly return date/time data since Arizona does not observe daylight savings. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40202&edit=1

« previous php.bugs (#107935) next »