|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13984 date(I) does not correctly identify daylight saving time
Submitted: 2001-11-07 16:05 UTC Modified: 2003-11-22 20:16 UTC
From: bmplummer1 at home dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.0.6 OS: Windows NT/XP
Private report: No CVE-ID: None
 [2001-11-07 16:05 UTC] 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]

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.

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!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-07 16:23 UTC]
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.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Feb 28 14:01:23 2021 UTC