I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git] / hphp / test / zend / bad / ext-date / strtotime-mysql.php
blob79b1cc59294e515ba4cf517b0c7ca60b9b8e7fb6
1 <?php
2 date_default_timezone_set('UTC');
4 /* Format: YYYYMMDDHHMMSS */
5 $d[] = '19970523091528';
6 $d[] = '20001231185859';
7 $d[] = '20800410101010'; // overflow..
9 foreach($d as $date) {
10 $time = strtotime($date);
12 if (is_integer($time)) {
13 var_dump(date('r', $time));
14 } else {
15 var_dump($time);