php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32804 timestamp april's wrong result
Submitted: 2005-04-23 18:28 UTC Modified: 2005-04-25 23:04 UTC
From: ygomez at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.10 OS: Win (xp, 2k)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ygomez at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-04-23 18:28 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-23 18:34 UTC] 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-25 23:04 UTC] ygomez at hotmail dot com
thank you for the help!.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 16:01:31 2024 UTC