Commit a3f44f65 authored by Shakarim Sapa's avatar Shakarim Sapa

- Изменили формат вывода даты

parent a7733fc7
......@@ -23,10 +23,10 @@ use yii\grid\GridView;
}
],
[
'attribute' => 'date:datetime',
'attribute' => 'date',
'value' => function($model) {
$dateNow = new \DateTime();
$date = new \DateTime($model);
$date = new \DateTime($model->date);
return ($date>$dateNow) ? 'Планируемая дата отправки: '.$date->format('d.m.Y') : $date->format('d.m.Y');
}
],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment