ID: 50199 Updated by: il...@php.net Reported By: peter dot ritt at gmx dot net -Status: Verified +Status: Bogus Bug Type: Date/time related Operating System: * PHP Version: 5.3, 6 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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