ID: 27095
Updated by: [EMAIL PROTECTED]
Reported By: ozsvar at yahoo dot com
-Status: Closed
+Status: Bogus
Bug Type: Date/time related
Operating System: Linux, Windows
PHP Version: 4.3.4
Previous Comments:
------------------------------------------------------------------------
[2004-01-30 04:16:46] ozsvar at yahoo dot com
My remark was wrong. I'm sorry. :(
------------------------------------------------------------------------
[2004-01-30 04:05:29] ozsvar at yahoo dot com
Description:
------------
I have found a bug at function strtotime().
When the system date is 30. January and I call strtotime with
parameter: +1 month the result is wrong: March!!!
Reproduce code:
---------------
<?
// If the system date is 2004-01-30
echo date("Y-m", strtotime("+1 month"));
// The result will be 2004-03 !!!!!!
?>
Expected result:
----------------
I expect 2004-02 !!!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27095&edit=1