php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44577 strtodate()
Submitted: 2008-03-31 12:12 UTC Modified: 2008-03-31 12:18 UTC
From: dirk dot pommerencke at moeller dot co dot uk Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.5 OS: XP SP2
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: dirk dot pommerencke at moeller dot co dot uk
New email:
PHP Version: OS:

 

 [2008-03-31 12:12 UTC] dirk dot pommerencke at moeller dot co dot uk
Description:
------------
It is the 31 March 2008 and with the code shown I am getting bizarre results.
I am expecting to land into April, but jumping into May instead.

I have worked around the problem, but this smells like a nasty bug.



Reproduce code:
---------------
$run_date = time();

echo date( "F d Y", strtotime( "+1 month", $run_date ));


Actual result:
--------------
>"C:\php5.2.4\php" -f "C:\progs\coois_to_excel\coois_to_excel.php"
May 01 2008>Exit code: 0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-31 12:18 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.

See bug #44073
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 12:01:32 2024 UTC