From ed55bdc47f78302e9f7271300cef11be655bccc0 Mon Sep 17 00:00:00 2001 From: Warren Levy Date: Thu, 28 Dec 2000 05:55:56 +0000 Subject: re PR libgcj/1358 (java.util.Date.toString() doesn't seem to behave properly.) Fix for PR libgcj/1358: * java/lang/System.java: Update Copyright date properly. * java/util/Calendar.java: Fix typo in comment. (set): Set 24-hour clock hour instead of 12-hour clock hour. * java/util/GregorianCalendar.java (GregorianCalendar): Properly initialize times. Spec says to set H:M:S values to zero only if a date is given. * java/util/TimeZone.java (getDefaultDisplayName): Casts to char needed for evaluating numbers '0' to '9' in printouts of GMT offsets. * java/util/natGregorianCalendar.cc (computeTime): Properly handle timezones and GMT offsets, being careful to account for units of milliseconds vs. seconds. From-SVN: r38508 --- libjava/java/util/Calendar.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libjava/java/util/Calendar.java') diff --git a/libjava/java/util/Calendar.java b/libjava/java/util/Calendar.java index f31577a..05c3f63 100644 --- a/libjava/java/util/Calendar.java +++ b/libjava/java/util/Calendar.java @@ -257,7 +257,7 @@ public abstract class Calendar implements Serializable, Cloneable */ public static final int DECEMBER = 11; /** - * Constant representing Undecimber. This is an artifical name useful + * Constant representing Undecimber. This is an artificial name useful * for lunar calendars. */ public static final int UNDECIMBER = 12; @@ -581,9 +581,9 @@ public abstract class Calendar implements Serializable, Cloneable public final void set(int year, int month, int date, int hour, int minute) { set(year, month, date); - fields[HOUR] = hour; + fields[HOUR_OF_DAY] = hour; fields[MINUTE] = minute; - isSet[HOUR] = isSet[MINUTE] = true; + isSet[HOUR_OF_DAY] = isSet[MINUTE] = true; } /** -- cgit v1.1