I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / bug41599.php
blob7731c6b0d477ad8d4c4e30316ec37530f8d6dbe1
1 <?php
2 date_default_timezone_set('Europe/London');
4 $start = new DateTime('2008-01-17 last Monday');
5 echo $start->format('Y-m-d H:i:s'),PHP_EOL;
6 //good
8 $start->modify('Tuesday');
9 echo $start->format('Y-m-d H:i:s'),PHP_EOL;
10 //good
12 $start->setTime(4, 0, 0);
13 echo $start->format('Y-m-d H:i:s'),PHP_EOL;
14 //jumped to next Sunday
16 $start->setTime(8, 0, 0);
17 echo $start->format('Y-m-d H:i:s'),PHP_EOL;
18 //jumped to next Sunday again