mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5454 Fixed getID problem in VTimeZone and updated the test case.
X-SVN-Rev: 22310
This commit is contained in:
parent
c7013ddaf0
commit
35a19cf658
2 changed files with 4 additions and 3 deletions
|
@ -499,7 +499,7 @@ public class TimeZoneRuleTest extends TestFmwk {
|
|||
* create a new VTimeZone from the VTIMEZONE data, then compare transitions
|
||||
*/
|
||||
public void TestVTimeZoneRoundTripPartial() {
|
||||
long[] cutoverTimes = new long[] {
|
||||
long[] startTimes = new long[] {
|
||||
getUTCMillis(1900, Calendar.JANUARY, 1),
|
||||
getUTCMillis(1950, Calendar.JANUARY, 1),
|
||||
getUTCMillis(2020, Calendar.JANUARY, 1)
|
||||
|
@ -507,8 +507,8 @@ public class TimeZoneRuleTest extends TestFmwk {
|
|||
long endTime = getUTCMillis(2050, Calendar.JANUARY, 1);
|
||||
|
||||
String[] tzids = getTestZIDs();
|
||||
for (int n = 0; n < cutoverTimes.length; n++) {
|
||||
long startTime = cutoverTimes[n];
|
||||
for (int n = 0; n < startTimes.length; n++) {
|
||||
long startTime = startTimes[n];
|
||||
for (int i = 0; i < tzids.length; i++) {
|
||||
BasicTimeZone olsontz = (BasicTimeZone)TimeZone.getTimeZone(tzids[i]);
|
||||
VTimeZone vtz_org = VTimeZone.create(tzids[i]);
|
||||
|
|
|
@ -742,6 +742,7 @@ public class VTimeZone extends BasicTimeZone {
|
|||
rbtz.addTransitionRule((TimeZoneRule)rit.next());
|
||||
}
|
||||
tz = rbtz;
|
||||
setID(tzid);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue