mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
This version replaces SPACEs before the meridian with NARROW NO-BREAK
SPACEs. Thus, we split the affected test cases as usual.
(cherry picked from commit 8dd51b462d)
Fixes GH-10262.
27 lines
695 B
PHP
27 lines
695 B
PHP
--TEST--
|
|
IntlDateFormatter::create() with default date and time types
|
|
--EXTENSIONS--
|
|
intl
|
|
--INI--
|
|
date.timezone=UTC
|
|
--SKIPIF--
|
|
<?php if (version_compare(INTL_ICU_VERSION, '72.1') >= 0) die('skip for ICU < 72.1'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$ts = strtotime('2012-01-01 00:00:00 UTC');
|
|
$fmt = IntlDateFormatter::create('en_US');
|
|
echo $fmt->format($ts), "\n";
|
|
|
|
$fmt = new IntlDateFormatter('en_US');
|
|
echo $fmt->format($ts), "\n";
|
|
|
|
$fmt = datefmt_create('en_US');
|
|
echo $fmt->format($ts), "\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
Sunday, January 1, 2012 at 12:00:00 AM Coordinated Universal Time
|
|
Sunday, January 1, 2012 at 12:00:00 AM Coordinated Universal Time
|
|
Sunday, January 1, 2012 at 12:00:00 AM Coordinated Universal Time
|