OK, I know what is happening now.... It looks like the startdate is being POSTED literally - and that Symfony is splitting the date at the / - like it would any other URL, to create key/value pairs. Hence the month -> year pair.
Not at all helpful! I'm surprised nobody has run into this before.... I've fixed it - by modifying the locale file for en_GB - replacing the dd/MM/YYYY with dd-MM-YYYY Having grepped through the locale files, it looks like there is a large number of other locales that will be affected by the same issue. Surely there is a cleaner fix than modifying the locale files directly? On 8 May 2008, at 11:07, Lee Bolding wrote: > > I can see this is my log... > > May 08 10:56:07 symfony [info] {sfRequest} request parameters array > ( 'module' => 'my_module', 'action' => 'showTaskDetails', > 'startdate' => '08', '05' => '2008', 'enddate' => '15', > 'content_object_id' => 'tsn11_l2it1', 'learner_id' => '4', 'subject' > => '1', 'anaction' => 'update',) > May 08 10:56:08 symfony [err] {sfException} Unable to parse date/time > value for [startdate] from input: '--' > > It seems the calendar widget is sending the date back to the action > incorrectly - 'startdate' => '08', '05' => '2008', - shouldn't > startdate be an array? > > Am I going wrong somewhere, or is the date helper going wrong? > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---