Working on an exciting project which as columns with Unix timestamp instead of a timestamp, so I need to make these values readable timestamps, is there a way to do this inside the query itself?
$query = (new \yii\db\Query())
->select(['a.created_at',
'a.updated_at',
])
->from(['a' => 'product'])
->all();
// the idea
'created_at' => date('Y-m-d H:i:s')