symfony/symfony — pull request #3162 by leevigraham (2012-01-20 05:20:34+00:00)
Title: Customise output string format of single text datetime fields

Adding the following to a form:

->add("dueAt", "date", array(
'input' => 'datetime',
'widget' => 'single_text',
"required" => false
))

results in fix format output `Y-m-d H:i:00` or `Y-m-d H:i:s` with seconds. This change allows the developer to change the output format using the `date_format` parameter.