2 date_default_timezone_set('Europe/Oslo');
3 $tz1 = new DateTimeZone('UTC');
4 $tz2 = date_create('UTC')->getTimeZone();
5 echo $tz1->getName(), PHP_EOL
;
6 echo $tz2->getName(), PHP_EOL
;
7 $d = new DateTime('2008-01-01 12:00:00+0200');
9 echo $d->format(DATE_ISO8601
), PHP_EOL
;
10 $d = new DateTime('2008-01-01 12:00:00+0200');
11 $d->setTimeZone($tz2);
12 echo $d->format(DATE_ISO8601
), PHP_EOL
;