calendar_getTimeZone_basic.phpt 540 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. IntlCalendar::getTimeZone() basic test
  3. --EXTENSIONS--
  4. intl
  5. --FILE--
  6. <?php
  7. ini_set("intl.error_level", E_WARNING);
  8. ini_set("intl.default_locale", "nl");
  9. $intlcal = IntlCalendar::createInstance('GMT+00:01');
  10. print_r($intlcal->getTimeZone());
  11. print_r(intlcal_get_time_zone($intlcal));
  12. ?>
  13. --EXPECT--
  14. IntlTimeZone Object
  15. (
  16. [valid] => 1
  17. [id] => GMT+00:01
  18. [rawOffset] => 60000
  19. [currentOffset] => 60000
  20. )
  21. IntlTimeZone Object
  22. (
  23. [valid] => 1
  24. [id] => GMT+00:01
  25. [rawOffset] => 60000
  26. [currentOffset] => 60000
  27. )