Hi,
I am currently using the JQuery plugin Datepicker in my Symfony project with the sfFormExtraPlugin. Everything is working fine but there is a seems to be a strange bug in the plugin. If I select 8 or 9 in any month the day is not selected in the form. The month and year work correctly but the day is not selected. The plugin works correctly for all other days but not for those two days.
The date format that I use is day/month/year. Not sure if thats part of the problem.
Thanks!
Here is the code I use to initialize the widget:
$years = range(date('Y'), date('Y')-80);
$this->widgetSchema['fecha_nacimiento'] = new sfWidgetFormJQueryDate(array(
'image'=>'/images/calendario.jpg',
'culture' => 'es',
'date_widget' => new sfWidgetFormDate(array('format'=>'%day%/%month%/%year%',
'years' => array_combine($years, $years)))
)
);
I should also mention that other people have told me they had the same problem. It seems to be a problem with the plugin but am not sure.