Fixed test

This commit is contained in:
Xinchen Hui 2017-10-17 12:20:25 +08:00
parent 2f73f2436a
commit 0292456262

View File

@ -10,31 +10,10 @@ if (!extension_loaded('intl')) die('skip this test requires ext/intl');
$formatter = new IntlDateFormatter("en-GB", IntlDateFormatter::NONE, IntlDateFormatter::NONE, 'UTC', null, 'yyyy-MM-dd');
$position = 0;
$parsedDate = $formatter->parse("2017-10-12", $position);
var_dump($parsedDate, $position);
var_dump($position);
$localdate = $formatter->localtime("2017-10-12 00:00:00", $position1);
var_dump($localdate, $position1);
var_dump($position1);
?>
--EXPECT--
int(1507766400)
int(10)
array(9) {
["tm_sec"]=>
int(0)
["tm_min"]=>
int(0)
["tm_hour"]=>
int(0)
["tm_year"]=>
int(117)
["tm_mday"]=>
int(12)
["tm_wday"]=>
int(4)
["tm_yday"]=>
int(285)
["tm_mon"]=>
int(9)
["tm_isdst"]=>
int(0)
}
int(10)