richa
(Richa)
July 25, 2011, 6:04am
1
Hi all,
I am a newbie. I am using the cjuidatetimepicker widget. my calendar is being displayed in chinese.I want it in en-us. I tried setting the language to ‘’ as follows:
<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
$this->widget('CJuiDateTimePicker',array(
'model'=>$model, //Model object
'attribute'=>'date1', //attribute name
'mode'=>'datetime', //use "time","date" or "datetime" (default)
'options'=>array(), // jquery plugin options
'language' => '',
));
?>
After doing so the language changes to english but now the entry is not going in the db. Can anybody please help me.
Thanks in advance.
richa
lubosdz
(Lubosdz)
July 25, 2011, 7:46am
2
I think this has been fixed in 1.1.8, perhaps upgrade framework…?
http://code.google.com/p/yii/issues/detail?id=2544
Karlchen
(Kaho42)
February 2, 2012, 12:56pm
3
richa:
Hi all,
I am a newbie. I am using the cjuidatetimepicker widget. my calendar is being displayed in chinese.I want it in en-us. I tried setting the language to ‘’ as follows:
<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
$this->widget('CJuiDateTimePicker',array(
'model'=>$model, //Model object
'attribute'=>'date1', //attribute name
'mode'=>'datetime', //use "time","date" or "datetime" (default)
'options'=>array(), // jquery plugin options
'language' => '',
));
?>
After doing so the language changes to english but now the entry is not going in the db. Can anybody please help me.
Thanks in advance.
richa
Hi you can solve this Problem with the description in the comment #3775 http://www.yiiframework.com/extension/datetimepicker/ .