#41731 [Opn->Bgs]: Date/Time Issue for November 2007
| From: | derick@php.net | Date: | Mon, 18 Jun 2007 20:03:51 +0000 |
| Subject: | #41731 [Opn->Bgs]: Date/Time Issue for November 2007 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113908@lists.php.net to get a copy of this message | ||
ID: 41731
Updated by: derick@php.net
Reported By: jiggilo at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *Calendar problems
Operating System: MAC
PHP Version: 5.2.3
New Comment:
We are happy to tell you that you just discovered Daylight Savings
Time. For more information see:
http://webexhibits.org/daylightsaving/b.html
Instead of using mktime/date consider using gmmktime and gmdate which
do
not suffer from DST.
.
Previous Comments:
------------------------------------------------------------------------
[2007-06-18 20:01:03] jiggilo at gmail dot com
Description:
------------
Adding 1 or 2 days to a string to time of November 3rd, 2007 reproduces
the same output. 86400 seconds = 24 hours.
Reproduce code:
---------------
<?php
echo date("Y-n-j", (1194062400 + 86400)) . '<br />';
echo date("Y-n-j", (1194062400 + 172800));
?>
Expected result:
----------------
2007-11-4
2007-11-5
Actual result:
--------------
2007-11-4
2007-11-4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41731&edit=1