Im just using the following in my GridView within the "columns"
'columns' => [
['class' => 'yii\grid\SerialColumn'],
//'player_id',
'first_name',
'last_name',
[
'header' => 'Date of Birth',
'value' => 'date_of_birth',
'format' => ['date', 'php: d M Y']
],
['class' => 'yii\grid\ActionColumn'],
],
My dates are in datetime in the DB but they are being displayed wrong. For instance 2001-09-21 00:00:00 in the DB is shown in the app as 20 Sep 2001. All my displayed values seem to be 1 day out.
What have I done wrong?