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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat May 18 21:01:33 2024 UTC