|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-08-31 08:10 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 03:00:01 2025 UTC |
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.