Commit 0e0a393f authored by Shakarim Sapa's avatar Shakarim Sapa

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

parent 30b456e4
......@@ -22,7 +22,14 @@ use yii\grid\GridView;
return $model->post->url;
}
],
'date:datetime',
[
'attribute' => 'date:datetime',
'value' => function($model) {
$dateNow = new \DateTime();
$date = new \DateTime($model);
return ($date>$dateNow) ? 'Планируемая дата отправки: '.$date->format('d.m.Y') : $date->format('d.m.Y');
}
],
[
'class' => 'yii\grid\ActionColumn',
'template' => '{update}{delete}',
......
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