php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44473 strtotime does not parse M d Y h:i:s:uA format
Submitted: 2008-03-18 21:38 UTC Modified: 2008-03-18 21:48 UTC
From: omar_mourad at aequicap dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 5.2.5 OS: linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: omar_mourad at aequicap dot com
New email:
PHP Version: OS:

 

 [2008-03-18 21:38 UTC] omar_mourad at aequicap dot com
Description:
------------
strtotime returns false for date format M d Y h:i:s:uA. I need this format because sybase queries are returning this format for datetime.

Reproduce code:
---------------
date_default_timezone_set( 'America/New_York'  );
$testDate = date('M d Y h:i:s:uA');
$date =  strtotime($testDate);


Expected result:
----------------
I expect to get a valid result.

Actual result:
--------------
false

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-18 21:48 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.3-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.3-win32-installer-latest.msi

This has already been fixed in CVS (PHP 5.3). As this is not a bug (it is simply unsupported), it will not be back ported.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 18:00:03 2025 UTC