#44473 [Opn->Csd]: strtotime does not parse M d Y h:i:s:uA format
| From: | derick@php.net | Date: | Tue, 18 Mar 2008 21:48:39 +0000 |
| Subject: | #44473 [Opn->Csd]: strtotime does not parse M d Y h:i:s:uA format | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123436@lists.php.net to get a copy of this message | ||
ID: 44473
Updated by: derick@php.net
Reported By: omar_mourad at aequicap dot com
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: linux
PHP Version: 5.2.5
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-03-18 21:38:33] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44473&edit=1