From ca6a6b408cc718a87bf1185008cede15c9209971 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 18 Jan 2017 15:37:52 +0200 Subject: [PATCH] -Date format for statistics --- views/statistics/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/views/statistics/index.php b/views/statistics/index.php index 757d6d0..54a1d93 100644 --- a/views/statistics/index.php +++ b/views/statistics/index.php @@ -374,7 +374,13 @@ JS; 'dataProvider' => $dataProvider, 'columns' => [ 'id', - 'created_at:datetime', + [ + 'label' => 'Дата добавления', + 'content' => function(Order $model) { + return \Yii::$app->formatter->asDate($model->created_at) . + '
' . \Yii::$app->formatter->asTime($model->created_at); + }, + ], 'name', [ 'label' => 'Товары', -- libgit2 0.21.4