Commit ca6a6b408cc718a87bf1185008cede15c9209971

Authored by Alexey Boroda
1 parent d9fd9ce5

-Date format for statistics

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
views/statistics/index.php
... ... @@ -374,7 +374,13 @@ JS;
374 374 'dataProvider' => $dataProvider,
375 375 'columns' => [
376 376 'id',
377   - 'created_at:datetime',
  377 + [
  378 + 'label' => 'Дата добавления',
  379 + 'content' => function(Order $model) {
  380 + return \Yii::$app->formatter->asDate($model->created_at) .
  381 + '<br>' . \Yii::$app->formatter->asTime($model->created_at);
  382 + },
  383 + ],
378 384 'name',
379 385 [
380 386 'label' => 'Товары',
... ...