Bug #13984 Updated: date(I) does not correctly identify daylight saving time
| From: | jimw@php.net | Date: | Wed, 07 Nov 2001 21:23:26 +0000 |
| Subject: | Bug #13984 Updated: date(I) does not correctly identify daylight saving time | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69775@lists.php.net to get a copy of this message | ||
ID: 13984
Updated by: jimw
Reported By: bmplummer1@home.com
Old Status: Open
Status: Bogus
Bug Type: Date/time related
Operating System: Windows NT/XP
PHP Version: 4.0.6
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2001-11-07 16:05:34] bmplummer1@home.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