Bug #55785 [Opn->Bgs]: strtotime() bug
| From: | cataphract@php.net | Date: | Tue, 27 Sep 2011 10:09:18 +0000 |
| Subject: | Bug #55785 [Opn->Bgs]: strtotime() bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163917@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55785&edit=1
ID: 55785
Updated by: cataphract@php.net
Reported by: pushpender at gmail dot com
Summary: strtotime() bug
-Status: Open
+Status: Bogus
Type: Bug
Package: Unknown/Other Function
Operating System: WAMP
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Expected behavior, as documented at
http://php.net/manual/en/datetime.formats.time.php
Previous Comments:
------------------------------------------------------------------------
[2011-09-26 14:43:13] pushpender at gmail dot com
Description:
------------
Strtotime() function creates problem when we convert a date which is in afternoon time.
Please see the example below. I have tried in 5.3.5 version of PHP on Wamp Server 2.
//it returns just empty
echo strtotime('Sep 23 2011 16:55PM');
// it returns as intended
echo strtotime('Sep 23 2011 04:55PM');
Test script:
---------------
echo strtotime('Sep 23 2011 16:55PM');
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55785&edit=1