php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55785 strtotime() bug
Submitted: 2011-09-26 14:43 UTC Modified: 2011-09-27 10:09 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: pushpender at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: Irrelevant OS: WAMP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pushpender at gmail dot com
New email:
PHP Version: OS:

 

 [2011-09-26 14:43 UTC] 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');


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-27 10:09 UTC] cataphract@php.net
-Status: Open +Status: Bogus
 [2011-09-27 10:09 UTC] cataphract@php.net
Expected behavior, as documented at 
http://php.net/manual/en/datetime.formats.time.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 13:01:36 2025 UTC