bug69398.phpt 652 B

1234567891011121314151617
  1. --TEST--
  2. IntlDateFormatter::formatObject(): returns wrong value when time style is NONE.
  3. --EXTENSIONS--
  4. intl
  5. --SKIPIF--
  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);
  12. echo IntlDateFormatter::formatObject($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE), 'vi_VN'), "\n";
  13. echo IntlDateFormatter::formatObject ($date, array(IntlDateFormatter::SHORT, IntlDateFormatter::NONE), 'ko_KR'), "\n";
  14. ?>
  15. --EXPECT--
  16. 04/04/2015
  17. 15. 4. 4.