3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt1 = new DateTime('2016-10-30 00:30:00', new DateTimeZone('UTC')); $dt2 = new DateTime('2016-10-30 01:30:00', new DateTimeZone('UTC')); echo $dt1->setTimezone(new DateTimeZone('Europe/Brussels'))->format(DateTime::RFC3339)."\n"; echo $dt2->setTimezone(new DateTimeZone('Europe/Brussels'))->format(DateTime::RFC3339)."\n";
based on vbC9V
Output for 5.5.0 - 7.3.0rc4
2016-10-30T02:30:00+02:00 2016-10-30T02:30:00+01:00