EJuiDateTimePicker input widget, based on Timepicker Addon Version 1.0.4 extends CJuiDatePicker
In box: support localization's (i18n), compressed JS if not YII_DEBUG (min.js).
Also, the default is the current time in picker, instead of the zero time (the widget feature).
Yii 1.1 or above
Put files (assets, EJuiDateTimePicker.php) into /protected/extensions/jui
$this->widget( 'ext.jui.EJuiDateTimePicker', array( 'model' => $model, 'attribute' => 'publish_time', //'language'=> 'ru',//default Yii::app()->language //'mode' => 'datetime',//'datetime' or 'time' ('datetime' default) 'options' => array( //'dateFormat' => 'dd.mm.yy', //'timeFormat' => '',//'hh:mm tt' default ), ) );
Total 4 comments
fixed in github
the following option:
shows Chinese characters in the datetime picker popup, even though language is set to 'en_us'. I had to change the line to
If you are using other language and you have time and datetime field in the same page, only time picker is displayed in datetime.
Quick fix (EJuiDateTimePicker.php, line 106)
find:
replace:
Maybe I'm doing something wrong, but when I try to use this plugin my app cannot find
My app is installed under webroot/yii/app/. I used the CJuiDateTimePicker extension and that didn't have any problems.
EDIT: It appears I needed to set 'language'=>'en' in this widget.
Leave a comment
Please login to leave your comment.