Edit report at https://bugs.php.net/bug.php?id=55785&edit=1

 ID:                 55785
 Updated by:         cataphr...@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

Reply via email to