#50051 [Opn->Fbk]: strtotime
| From: | sjoerd@php.net | Date: | Sun, 01 Nov 2009 20:32:30 +0000 |
| Subject: | #50051 [Opn->Fbk]: strtotime | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144141@lists.php.net to get a copy of this message | ||
ID: 50051
Updated by: sjoerd@php.net
Reported By: tailinchu at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Date/time related
PHP Version: 5.2.11
New Comment:
Thank you for your bug report.
The string you supply, 200910, is not a complete date. Why do you think
this should return 2009-10-01?
Previous Comments:
------------------------------------------------------------------------
[2009-11-01 20:29:16] tailinchu at gmail dot com
Description:
------------
strtotime() cannot create correct timestamp.
Reproduce code:
---------------
echo date('Ymd',strtotime('200910'));
Expected result:
----------------
20091001
Actual result:
--------------
20091101
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50051&edit=1