OSDN Git Service

Fix useDaylightTime for zh_TW (and other locales).
authorElliott Hughes <enh@google.com>
Tue, 22 Sep 2009 20:27:24 +0000 (13:27 -0700)
committerElliott Hughes <enh@google.com>
Tue, 22 Sep 2009 20:27:24 +0000 (13:27 -0700)
commitbd9b181e9858ea63c7900ae351312533da54dd3a
tree71412e7b5a33836133e8a6de809de70c75576574
parent94923f83c19562fc16c78eb0ee8cd325197eb154
Fix useDaylightTime for zh_TW (and other locales).

TimeZone.useDaylightTime shouldn't report whether a locale has *ever* used DST,
but whether a locale uses DST "these days". Taiwan is an example supported
locale that historically used DST but hasn't used it since 1980.

Bug: 877
libcore/luni/src/main/java/org/apache/harmony/luni/internal/util/ZoneInfo.java
libcore/luni/src/test/java/tests/api/java/util/TimeZoneTest.java