Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/intl/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/intl/tests/calendar_setTimeZone_error2.phpt |
--TEST-- IntlCalendar::setTimeZone(): valid time zones for DateTime but not ICU --SKIPIF-- <?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); --FILE-- <?php ini_set("intl.error_level", E_WARNING); ini_set("intl.default_locale", "nl"); date_default_timezone_set('Europe/Amsterdam'); $intlcal = new IntlGregorianCalendar(); $pstdate = new DateTime('2012-01-01 00:00:00 WEST'); $intlcal->setTimeZone($pstdate->getTimeZone()); var_dump($intlcal->getTimeZone()->getID()); $pstdate = new DateTime('2012-01-01 00:00:00 +24:00'); $intlcal->setTimeZone($pstdate->getTimeZone()); var_dump($intlcal->getTimeZone()->getID()); --EXPECTF-- Warning: IntlCalendar::setTimeZone(): intlcal_set_time_zone: time zone id 'WEST' extracted from ext/date DateTimeZone not recognized in %s on line %d string(16) "Europe/Amsterdam" Warning: IntlCalendar::setTimeZone(): intlcal_set_time_zone: object has an time zone offset that's too large in %s on line %d string(16) "Europe/Amsterdam"
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare