I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / bug45529.php
blob89798bfa54689f338f4d032c4965c2da68ea5e81
1 <?php
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');
8 $d->setTimeZone($tz1);
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;