php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38229 echo date("Y-m-d",strtotime('2006-03'));
Submitted: 2006-07-27 03:03 UTC Modified: 2006-07-27 13:01 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: yichengjun at 163 dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 5.1.4 OS: windows xp
Private report: No CVE-ID: None
 [2006-07-27 03:03 UTC] yichengjun at 163 dot com
Description:
------------
echo date("Y-m-d",strtotime('2006-03'));

Reproduce code:
---------------
echo date("Y-m-d",strtotime('2006-03'));

Expected result:
----------------
2006-03-01

Actual result:
--------------
2006-07-28 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-27 13:01 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC