|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-30 04:16 UTC] ozsvar at yahoo dot com
[2004-01-30 06:27 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 22:00:01 2025 UTC |
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 !!!