#45459 [Asn->Csd]: date_create_from_format() fails on DATE_RFC3339
| From: | derick@php.net | Date: | Tue, 08 Jul 2008 20:25:05 +0000 |
| Subject: | #45459 [Asn->Csd]: date_create_from_format() fails on DATE_RFC3339 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126404@lists.php.net to get a copy of this message | ||
ID: 45459
Updated by: derick@php.net
Reported By: php at benjaminschulz dot com
-Status: Assigned
+Status: Closed
Bug Type: Date/time related
Operating System: linux / darwin
PHP Version: 5.3CVS-2008-07-08 (CVS)
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-07-08 16:26:09] derick@php.net
It's not really a bug, the specifiers used are not 100% the same, but
I'll see if I can make it work better.
------------------------------------------------------------------------
[2008-07-08 15:45:06] php at benjaminschulz dot com
Description:
------------
date_create_from_format() is unable to parse DATE_RFC3339
Reproduce code:
---------------
<?php
$date = new ::DateTime;
$otherdate = date_create_from_format(DATE_RFC3339,
$date->format(DATE_RFC3339));
var_dump($otherdate);
Expected result:
----------------
A ::DateTime object
Actual result:
--------------
false
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45459&edit=1