tingobol / gii-template-collection

Automatically exported from code.google.com/p/gii-template-collection
0 stars 0 forks source link

set yyyy-mm-dd as default format for date picker #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use FullCrud to create CRUD for a table with a date column
2. use date picker to set a date for the date field
3.

What is the expected output? 
date picker date format defaults to yyyy-mm-dd to be compatible with mysql
What do you see instead?
date format defaults to mm/dd/yy and so posted dates don't get added to record

What version of the product are you using? On what operating system?
0.4

Please provide any additional information below.
can be enhanced by adding a line to htmloptions:
'dateFormat'=>'yy-mm-dd',

Original issue reported on code.google.com by jonnyk...@gmail.com on 9 Jul 2011 at 12:05

GoogleCodeExporter commented 9 years ago
Just looked at the code  and found that 
'dateFormat' => 'yy-mm-dd', is in giix-core/giixCrud/GiixCrudCode.php
but is missing from gtc/fullCrud/FullCrudCode.php which also has 
'changeYear'=>true,  repeated twice

Original comment by jonnyk...@gmail.com on 30 Jul 2011 at 4:25