#32804 [Opn->Bgs]: timestamp april's wrong result
| From: | tony2001@php.net | Date: | Sat, 23 Apr 2005 16:34:35 +0000 |
| Subject: | #32804 [Opn->Bgs]: timestamp april's wrong result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78078@lists.php.net to get a copy of this message | ||
ID: 32804
Updated by: tony2001@php.net
Reported By: ygomez at hotmail dot com
-Status: Open
+Status: Bogus
-Bug Type: Date/time related
+Bug Type: *General Issues
Operating System: Win (xp, 2k)
PHP Version: 4.3.10
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:
------------------------------------------------------------------------
[2005-04-23 18:28:25] ygomez at hotmail dot com
Description:
------------
This error only came about in April 2005 at 2:00. I got 1 hr missing on
timestamp result and affect the following timestamp's results.
I hope can help me.
Reproduce code:
---------------
<?
echo strtotime ("20050403");
echo strtotime ("20050403 1:00:00");
echo strtotime ("20050403 2:00:00");
echo strtotime ("20050404");
?>
Expected result:
----------------
1112508000
1112511600
1112515200
1112594400
Actual result:
--------------
1112508000
1112511600
1112511600
1112590800
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32804&edit=1