source: src/router/php7/ext/intl/tests/bug69398.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 734 bytes
Line 
1--TEST--
2IntlDateFormatter::formatObject(): returns wrong value when time style is NONE.
3--SKIPIF--
4<?php
5if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
6<?php if (version_compare(INTL_ICU_VERSION, '50.1.2') < 0) die('skip for ICU >= 51.1.2'); ?>
7--FILE--
8<?php
9$millitimestamp = 1428133423941.0; // 14:43:43 April 04 2015
10$date = IntlCalendar::createInstance('Asia/Ho_Chi_Minh');
11$date->setTime($millitimestamp);
12echo IntlDateFormatter::formatObject($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE), 'vi_VN'), "\n";
13echo IntlDateFormatter::formatObject ($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE), 'ko_KR'), "\n";
14?>
15==DONE==
16
17--EXPECTF--
1804/04/2015
1915. 4. 4.
20==DONE==
21
22
Note: See TracBrowser for help on using the repository browser.