sonata-project/SonataAdminBundle — Issue #615: form field date type with widget single text
Author: JohnPoison
Created: 2012-03-07 11:01:55+00:00
State: open

protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
...
->add('startDate', 'date', array('widget' => 'single_text') )
...

database value of this field is 2012-12-27, but when I'm editing this record I see value 2012-12-26 in the form field
I found that date incorrectly tranforms in DateTimeToLocalizedStringTransformer and rollbacks for one day