From abf28a4d1add8e1403f2aabf4461f20903bd027e Mon Sep 17 00:00:00 2001 From: "Gustavo G. Andrade" Date: Mon, 27 Apr 2015 19:56:39 -0300 Subject: [PATCH] Fix Changed translation Test formatter date --- models/Cashbook.php | 2 +- views/cashbook/_search.php | 4 ++-- views/cashbook/view.php | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) 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'], ], ], ]) ?>