Bug #52020 [Opn->Bgs]: date function error
| From: | degeberg@php.net | Date: | Tue, 08 Jun 2010 08:55:44 +0000 |
| Subject: | Bug #52020 [Opn->Bgs]: date function error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151170@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52020&edit=1
ID: 52020
Updated by: degeberg@php.net
Reported by: 117712 at gmail dot com
Summary: date function error
-Status: Open
+Status: Bogus
Type: Bug
-Package: Website problem
+Package: Date/time related
PHP Version: 5.2.13
New Comment:
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.
Valid formats are explained here:
http://php.net/datetime.formats
Previous Comments:
------------------------------------------------------------------------
[2010-06-08 10:51:47] 117712 at gmail dot com
Description:
------------
I think this will return 2010-04-31 but no show it for me!
Test script:
---------------
echo date('Y-m-d', strtotime("-1 month 2010-05-31"));
Expected result:
----------------
echo date('Y-m-d', strtotime("-1 month 2010-05-31"));
Actual result:
--------------
echo date('Y-m-d', strtotime("-1 month 2010-05-31"));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52020&edit=1