DateIntervalFormat won't output year, month, day if the era is different

Description

This is discovered by anba in https://github.com/tc39/proposal-intl-DateTimeFormat-formatRange/issues/22

Somehow ICU's DateIntervalFormat, when specified to output hour, would correctly also output the year, month and day if the starting and ending date are in different day. However, it won't do so if the starting date and ending date are in a different era- the most obvious cases is under Japanese calendar, for example, the era in the Japanese calendar change in May 1 2019 so somehow now showing the range of "2019-01-01" and "2020-01-01" only show hour, without year, month, and day. I will write an unit test to show the bug later.

Assignee

Frank Yung-Fong Tang

Reporter

Frank Yung-Fong Tang

Components

Labels

Reviewer

None

Priority

medium

Time Needed

Days

Fix versions

Configure