ID: 49422 User updated by: dolby at xpteam dot eu Reported By: dolby at xpteam dot eu Status: Bogus Bug Type: Date/time related Operating System: gentoo PHP Version: 5.2.11RC1 New Comment:
Thank you for your comment. I have no intention to use bug zone this a a programming support. But I have come to this "issue" originally by using: strtotime("+1month"); And using it on 31.08.2009 will produce the: Thu, 01 Oct 2009 11:52:57 +0200. Is this really an expected behaviour ? If so, I am sorry for misusing this bug system. Previous Comments: ------------------------------------------------------------------------ [2009-08-31 09:03:43] scott...@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Since there is no September 31st it becomes October 1st, this is expected behavior. ------------------------------------------------------------------------ [2009-08-31 08:10:05] dolby at xpteam dot eu Description: ------------ I am just wondering is this a bug or expected behaviour: echo date("r", mktime(0,0,0,9,31,2009)); It returns: Thu, 01 Oct 2009 00:00:00 +0200 but I "expect" i to be: Wed, 30 Sep 2009 00:00:00 +0200 Maybe I am missing the point, but I always supposed the mktime considers real dates. Reproduce code: --------------- echo date("r", mktime(0,0,0,9,31,2009)); Expected result: ---------------- Wed, 30 Sep 2009 00:00:00 +0200 Actual result: -------------- Thu, 01 Oct 2009 00:00:00 +0200 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49422&edit=1