xref: /php-src/ext/intl/tests/bug69398.phpt (revision 3815a773)
1--TEST--
2IntlDateFormatter::formatObject(): returns wrong value when time style is NONE.
3--EXTENSIONS--
4intl
5--SKIPIF--
6<?php
7if (version_compare(INTL_ICU_VERSION, '74.1') >= 0) die('skip for ICU < 74.1');
8?>
9--FILE--
10<?php
11$millitimestamp = 1428133423941.0; // 14:43:43 April 04 2015
12$date = IntlCalendar::createInstance('Asia/Ho_Chi_Minh');
13$date->setTime($millitimestamp);
14echo IntlDateFormatter::formatObject($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE), 'vi_VN'), "\n";
15echo IntlDateFormatter::formatObject ($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE), 'ko_KR'), "\n";
16?>
17--EXPECT--
1804/04/2015
1915. 4. 4.
20