twig date get minored by one day twig date get minored by one day symfony symfony

twig date get minored by one day


twig documentation:

If the date is already a DateTime object, and if you want to keep its current timezone, pass false as the timezone value:

use this code:

{{contract.beginning|date('d/m/Y', false)}}