From 7d49a2bd9907e76c1edbce71fc1f60dff17ea2b0 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sat, 16 May 2015 21:26:22 +0300 Subject: [PATCH] Additional guard against fixed time zones --- .../java/org/teavm/classlib/impl/tz/DateTimeZoneProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/impl/tz/DateTimeZoneProvider.java b/teavm-classlib/src/main/java/org/teavm/classlib/impl/tz/DateTimeZoneProvider.java index 5bb18c521..f96ec401d 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/impl/tz/DateTimeZoneProvider.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/impl/tz/DateTimeZoneProvider.java @@ -79,7 +79,7 @@ public class DateTimeZoneProvider { for (String id : getIds()) { DateTimeZone tz = getTimeZone(id); int tzOffset = tz.getOffset(time) / 60_000; - if (Math.abs(tzOffset - offset) > 120) { + if (Math.abs(tzOffset - offset) > 120 || tz.previousTransition(time) == time) { continue; } zones.add(new Score(tz));