PATCH: Timezone fixes PR 1358 (formerly PR 331)

Warren Levy warrenl@redhat.com
Wed Dec 27 21:56:00 GMT 2000


Folks,
I've checked in some fixes which take care of PR 1358 (java.util.Date,
java.util.GregorianCalendar and some associated timezone problems).
Enjoy!
--warrenl


2000-12-27  Warren Levy  <warrenl@redhat.com>

        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.





More information about the Java-patches mailing list