#32804 [Bgs]: timestamp april's wrong result
| From: | ygomez at hotmail dot com | Date: | Mon, 25 Apr 2005 21:04:34 +0000 |
| Subject: | #32804 [Bgs]: timestamp april's wrong result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78182@lists.php.net to get a copy of this message | ||
ID: 32804
User updated by: ygomez at hotmail dot com
Reported By: ygomez at hotmail dot com
Status: Bogus
Bug Type: *General Issues
Operating System: Win (xp, 2k)
PHP Version: 4.3.10
New Comment:
thank you for the help!.
Previous Comments:
------------------------------------------------------------------------
[2005-04-23 18:34:33] tony2001@php.net
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.
------------------------------------------------------------------------
[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