ID: 50199 Updated by: j...@php.net Reported By: peter dot ritt at gmx dot net -Status: Open +Status: Verified Bug Type: Date/time related -Operating System: linux +Operating System: * -PHP Version: 5.3.0 +PHP Version: 5.3, 6
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