mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
36fadde72c
Timezone offsets can be negative
32 lines
533 B
PHP
32 lines
533 B
PHP
--TEST--
|
|
IntlTimeZone::createDefault(): basic test
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
$tz = IntlTimeZone::createDefault();
|
|
print_r($tz);
|
|
$tz = intltz_create_default();
|
|
print_r($tz);
|
|
?>
|
|
==DONE==
|
|
--EXPECTF--
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => %s
|
|
[rawOffset] => %i
|
|
[currentOffset] => %i
|
|
)
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => %s
|
|
[rawOffset] => %i
|
|
[currentOffset] => %i
|
|
)
|
|
==DONE==
|