- var_dump: documentation ( source)
<?php
$timeZoneTl = IntlTimeZone::createTimeZone('Europe/Paris')->toDateTimeZone();
$dtz = new DateTimeZone("Europe/Paris");
$dateT = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '1940-06-13 22:00:00', new DateTimeZone('UTC'));
$timeZonedDateT = $dateT->setTimezone($dtz);
var_dump($timeZonedDateT->format('Y-m-d H:i:s'));
// Output : 13/06/1940 (wrong)
$timeZoneTl = IntlTimeZone::createTimeZone('Europe/Paris')->toDateTimeZone();
$dtz = new DateTimeZone("Europe/Paris");
$dateT = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '1940-06-15 22:00:00', new DateTimeZone('UTC'));
$timeZonedDateT = $dateT->setTimezone($dtz);
var_dump($timeZonedDateT->format('Y-m-d H:i:s'));