Change time zone tests to respect Android changes.
There is a difference in how java.time on the OpenJDK treats time zone names and how Android as a whole treats them, specifically when it comes to the short names (abbreviations) of zones. Android uses the CLDR data exclusively. CLDR only includes time zone abbreviations in a given locale when that abbreviation is widely used in that locale (for example: "CST" is "Central Standard Time" in en_US). Other abbreviations that are arguably correct, but are not widely known or used are not included in the data, such as "CST" for "Chinese Standard Time". This means that there are rarely conflicts in the abbreviations and no resolution mechanism is needed (and in fact ICU doesn't provide one). java.time in the OpenJDK (as well as other time zone name handling methods) has abbreviations for almost every zone, even when the zones are rarely used. This of course leads to many conflicts (such as CST for Central Standard Time and Chinese Standard Time). This port of java.time will stay consistent with how Android as a whole handles time zone names and will use the ICU/CLDR data. This means that many tests that expect specific results will fail. Bug: 28832222 Test: compiles, fewer tests fail Change-Id: Ic23c2795a440d61d97db8c4c44cfd35a053c0105
Loading
Please sign in to comment