ID: 50199 Updated by: der...@php.net Reported By: peter dot ritt at gmx dot net Status: Bogus Bug Type: Date/time related Operating System: * PHP Version: 5.3, 6 New Comment:
Yes, that's tracked in http://bugs.php.net/bug.php?id=36474 Previous Comments: ------------------------------------------------------------------------ [2009-11-21 22:30:00] peter dot ritt at gmx dot net double checked docs, only found: "Format accepted by date() with some extras." no info concerning those extras; would you mind providing more details in the docs? thanks ------------------------------------------------------------------------ [2009-11-19 13:28:11] il...@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The "c" format is not supported by the date_parse_from_format() function. ------------------------------------------------------------------------ [2009-11-16 23:14:15] peter dot ritt at gmx dot net Description: ------------ date_parse_from_format refuses to read '2009-11-17T00:08:24+01:00'; error: The format separator does not match Reproduce code: --------------- $d = date('c'); echo $d; echo "\n"; print_r(date_parse_from_format('c', $d)); Expected result: ---------------- array with data as specified in function.date-parse-from-format.php Actual result: -------------- Array ( [year] => [month] => [day] => [hour] => [minute] => [second] => [fraction] => [warning_count] => 0 [warnings] => Array ( ) [error_count] => 2 [errors] => Array ( [0] => The format separator does not match [1] => Trailing data ) [is_localtime] => ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50199&edit=1