#50051 [Fbk]: strtotime
| From: | sjoerd@php.net | Date: | Sun, 01 Nov 2009 20:35:50 +0000 |
| Subject: | #50051 [Fbk]: strtotime | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144142@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: Feedback
Bug Type: Date/time related
PHP Version: 5.2.11
New Comment:
Strtotime('200910') creates a correct timestamp on today, with a time
of 20:09:10.
Previous Comments:
------------------------------------------------------------------------
[2009-11-01 20:32:29] sjoerd@php.net
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?
------------------------------------------------------------------------
[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