madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CRUD: dateformat yyyy-MM-dd vs. dd-MM-yyyy #823

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using ZF 1.11, PHP 5.3, Windows and the most recent version of zfdatagrid. 

I use 

$grid->updateColumn('birthday', array('format'=> 
array('date',array('date_format' => 'dd-MM-yyyy'))));   

to display an attribute "birthday" as dd-MM-yyyy. When I click on the Edit 
button (CRUD enabled), the value of this attribute is being displayed as 
'yyyy-MM-dd'. When the user clicks the save button, he gets an error message 
(Please, enter date as dd-MM-yyyy). 

How can I tell the $form to display the value as dd-MM-yyyy instead of 
yyyy-MM-dd?

Original issue reported on code.google.com by christia...@gmx.net on 9 Feb 2012 at 8:04

GoogleCodeExporter commented 9 years ago
Please use $grid->getForm(1); to retrieve the Zend_Form instance and manage 
form elements.

That error message is not from ZFDatagrid. 

Original comment by licentia...@gmail.com on 6 May 2012 at 5:35