I'm usinf Symfony 3.2.9 with Sonata-admin bundle.
I've create this field in my Entity component:
/**
* @var \DateTime $verificat
*
* @ORM\Column(type="datetime", nullable=true)
*/
private $verificat;
In his admin class there is this function:
protected function configureListFields(ListMapper $listMapper)
{
$listMapper->add('verificat','datetime',array('label' => 'Data verificació','format' => 'd/M/Y H:mm'));
}
My problem is that it transforms the date like 2017/Jun/12 13:0606. Where I want to show minutes it shows the month number in the year.
I'd like to know how to show minuts, and even better, how to build any pattern format.