--TEST-- IntlDateFormatter: several forms of the timezone arg --SKIPIF-- = 52.1'); ?> = 0) die('skip for ICU < 54.1'); ?> --FILE-- format($ts), "\n"; $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam'); echo $df->format($ts), "\n"; $df = new IntlDateFormatter('es_ES', 0, 0, new DateTimeZone('Europe/Lisbon')); echo $df->format($ts), "\n"; $df = new IntlDateFormatter('es_ES', 0, 0, IntlTimeZone::createTimeZone('America/New_York')); echo $df->format($ts), "\n"; //time zone has priority $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', new IntlGregorianCalendar('Europe/Lisbon')); echo $df->format($ts), "\n"; //calendar has priority $df = new IntlDateFormatter('es_ES', 0, 0, NULL, new IntlGregorianCalendar('Europe/Lisbon')); echo $df->format($ts), "\n"; $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0); echo $df->format($ts), "\n"; --EXPECTF-- sábado%S 31 de diciembre de 2011, 23:00:00 (Hora estándar de las Azores) domingo%S 1 de enero de 2012, 1:00:00 (Hora estándar de Europa central) domingo%S 1 de enero de 2012, 0:00:00 (Hora%S estándar de Europa occidental) sábado%S 31 de diciembre de 2011, 19:00:00 (Hora estándar oriental) domingo%S 1 de enero de 2012, 1:00:00 (Hora estándar de Europa central) domingo%S 1 de enero de 2012, 0:00:00 (Hora%S estándar de Europa occidental) domingo%S 1 de enero de 2012, 1:00:00 (Hora estándar de Europa central)