#13984 [Com]: date(I) does not correctly identify daylight saving time

From: Date: Sat, 22 Nov 2003 23:37:06 +0000
Subject: #13984 [Com]: date(I) does not correctly identify daylight saving time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50856@lists.php.net to get a copy of this message
ID: 13984 Comment by: patt_jam at hotmail dot com Reported By: bmplummer1 at home dot com Status: Bogus Bug Type: Date/time related Operating System: Windows NT/XP PHP Version: 4.0.6 New Comment: Arizona really need to observe DST during the summer between April and October. To assure that they'll have a good taste of having daylight/twilight later in the evening if the government allow to use DST which means still on the MST. However, since Arizona do not observe DST which means they are on California time (PST) will get dark early and California will still have daylight a little while longer. If Arizona were smart enough, they can tell the local government to move the clock 1 hour foward and still be on MST, not on PST. The Indian Reservation do observe daylight savings is on MST and the rest of the state is on PST. You may want to check on www.sunrisesunset.com and most of USA have daylight after 8pm. Best if the people in the state of Arizona to persuade the government or vote. Previous Comments: ------------------------------------------------------------------------ [2001-11-07 16:23:26] jimw@php.net in a timezone that does not observe daylight savings time, there is no such thing as a time within daylight savings time. not all timezones that observe daylight savings time observe the same dates for time changes. so if you want to know if a particular data/time falls within daylight savings time *in a particular time zone* you have to set the timezone. this is not a bug. this is not an issue. it is just how daylight savings time works. ------------------------------------------------------------------------ [2001-11-07 16:05:34] bmplummer1 at home dot com From Bug #13900 date("I") does not identify if a date occurs during daylight saving time correctly. [2001-11-06 00:20:42] jimw@php.net if you want to check if a date occurs during daylight savings time, you have to set your timezone to one that observes daylight savings time. (ie. putenv("TZ=PST8PDT")) there's no bug here. --------------------------------------------------------- There may not be a bug but there is a issue here. What about timezones that don't observe daylight saving time (Like the entire state of Arizona)? Are the millions of us that fall under that category just out of luck? By the way, Arizona is the home of the World Series Champion Diamondbacks! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=13984&edit=1

« previous php.bugs (#50856) next »