ID: 47835
Updated by: [email protected]
Reported By: snowyurik at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Linux
PHP Version: 5.2.9
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
This is also expected behavior, remember that there is no February
30th!
Previous Comments:
------------------------------------------------------------------------
[2009-03-30 04:00:12] snowyurik at gmail dot com
Description:
------------
echo date('Y-m-d H:i:s',strtotime('2009-02-30 00:00:00'));
this code return
"2009-03-02 00:00:00" instead of "2009-02-30 00:00:00"
Reproduce code:
---------------
echo date('Y-m-d H:i:s',strtotime('2009-02-30 00:00:00'));
Expected result:
----------------
2009-02-30 00:00:00
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47835&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.