php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28774 strtotime returning different results
Submitted: 2004-06-14 17:18 UTC Modified: 2004-06-14 17:21 UTC
From: jonathancrossett at hotmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.0.0RC3 OS: Linux
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: jonathancrossett at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-06-14 17:18 UTC] jonathancrossett at hotmail dot com
Description:
------------
In PHP5-RC2 and RC3 when I try to add time to a time stamp with strtotime I receive improper results. 

Reproduce code:
---------------
<?
for ($i = 0; $i < 4; $i++)
{
        $mytime = strtotime ($i);
        echo "<br> $mytime - " . strtotime("+1 minutes", $mytime);
}
?>

Expected result:
----------------
1086566400 - 1086566460
1086570000 - 1086570060
1086573600 - 1086573660
1086577200 - 1086577260

Actual result:
--------------
1086566400 - 1086566460
1086570000 - 1086566460
1086573600 - 1086566460
1086577200 - 1086566460

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-14 17:21 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Dup of http://bugs.php.net/28599
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 16:01:31 2024 UTC