From 047170947d3c42533b4a3f36c16a7a4f5ae07442 Mon Sep 17 00:00:00 2001 From: Steve Hannah Date: Mon, 4 May 2015 12:49:04 -0700 Subject: [PATCH] Fixed GregorianCalendar constructor with TimeZone arg to initialize the time correctly. --- .../java/org/teavm/classlib/java/util/TGregorianCalendar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/java/util/TGregorianCalendar.java b/teavm-classlib/src/main/java/org/teavm/classlib/java/util/TGregorianCalendar.java index 5d2a1b40e..305b88a67 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/java/util/TGregorianCalendar.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/java/util/TGregorianCalendar.java @@ -60,7 +60,7 @@ public class TGregorianCalendar extends TCalendar { } public TGregorianCalendar(TTimeZone zone) { - setTimeZone(zone); + this(zone, TLocale.getDefault()); } public TGregorianCalendar(int year, int month, int day) {