php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29310 strtotime() returning wrong results
Submitted: 2004-07-21 21:38 UTC Modified: 2004-07-21 22:59 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bald at pf dot pl Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.0.0 OS: Windows XP
Private report: No CVE-ID: None
 [2004-07-21 21:38 UTC] bald at pf dot pl
Description:
------------
strtotime() function gives me a strange results, diffrent in PHP 5 and PHP 4. 

Reproduce code:
---------------
<?php
  $date = 1090435469;
  echo date("d-m-Y H:i:s", $date) . '<br>'; // 21-07-2004 20:44:29
  echo date("d-m-Y H:i:s", strtotime("+1 minute", $date)); // 21-07-2004 00:01:00
?>

Expected result:
----------------
21-07-2004 20:44:29
21-07-2004 20:45:29

Actual result:
--------------
21-07-2004 20:44:29
21-07-2004 00:01:00

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-21 22:59 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.

Already reported, please search the bug system first before reporting a bug next time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 17:01:29 2024 UTC