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
 [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 08:00:03 2025 UTC