1--TEST-- 2IntlDateFormatter::create() with default date and time types 3--EXTENSIONS-- 4intl 5--INI-- 6date.timezone=UTC 7--SKIPIF-- 8<?php if (version_compare(INTL_ICU_VERSION, '72.1') < 0) die('skip for ICU >= 72.1'); ?> 9--FILE-- 10<?php 11 12$ts = strtotime('2012-01-01 00:00:00 UTC'); 13$fmt = IntlDateFormatter::create('en_US'); 14echo $fmt->format($ts), "\n"; 15 16$fmt = new IntlDateFormatter('en_US'); 17echo $fmt->format($ts), "\n"; 18 19$fmt = datefmt_create('en_US'); 20echo $fmt->format($ts), "\n"; 21 22?> 23--EXPECT-- 24Sunday, January 1, 2012 at 12:00:00 AM Coordinated Universal Time 25Sunday, January 1, 2012 at 12:00:00 AM Coordinated Universal Time 26Sunday, January 1, 2012 at 12:00:00 AM Coordinated Universal Time 27