diff --git a/classpath/java/util/Calendar.java b/classpath/java/util/Calendar.java index 5989c9451b..c479cc49fc 100644 --- a/classpath/java/util/Calendar.java +++ b/classpath/java/util/Calendar.java @@ -76,6 +76,11 @@ public abstract class Calendar { parseIntoFields(time); } + public void setTime(Date date) { + super.setTime(date); + parseIntoFields(this.time); + } + private static boolean isLeapYear(int year) { return (year%4 == 0) && (year%100 != 0) || (year%400 == 0); }