diff --git a/models/Cashbook.php b/models/Cashbook.php index b5bee82..a60397a 100644 --- a/models/Cashbook.php +++ b/models/Cashbook.php @@ -135,7 +135,7 @@ public function attributeLabels() 'is_pending' => Yii::t('app', 'Pending'), 'attachment' => Yii::t('app', 'Attach'), 'inc_datetime' => Yii::t('app', 'Created'), - 'edit_datetime' => Yii::t('app', 'Changed '), + 'edit_datetime' => Yii::t('app', 'Changed'), ]; } diff --git a/views/cashbook/_search.php b/views/cashbook/_search.php index 852097f..c00650e 100644 --- a/views/cashbook/_search.php +++ b/views/cashbook/_search.php @@ -25,7 +25,7 @@ ]); ?>
-
+
'.Yii::t('app', 'From').''; echo DatePicker::widget([ @@ -48,7 +48,7 @@

-
+
'.Yii::t('app', 'To').''; echo DatePicker::widget([ diff --git a/views/cashbook/view.php b/views/cashbook/view.php index deded8e..778eeef 100644 --- a/views/cashbook/view.php +++ b/views/cashbook/view.php @@ -73,7 +73,8 @@ ], [ 'attribute' => 'edit_datetime', - 'format' => ['date', 'd/M/Y H:m:s'], + 'value' => Yii::$app->formatter->asDate($model->inc_datetime, 'short'), + //'format' => ['date', 'd/M/Y H:m:s'], ], ], ]) ?>