diff options
author | Tom Tromey <tromey@redhat.com> | 2001-07-31 03:01:47 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-07-31 03:01:47 +0000 |
commit | e8b3bcfd3ff814c6c8eab1b4f327785132a52844 (patch) | |
tree | 02cb685621d4a339ad0359f2ed2d159e9ca95e13 | |
parent | 8882829102634f06c7da2d98b0dbab1c91039dce (diff) | |
download | gcc-e8b3bcfd3ff814c6c8eab1b4f327785132a52844.zip gcc-e8b3bcfd3ff814c6c8eab1b4f327785132a52844.tar.gz gcc-e8b3bcfd3ff814c6c8eab1b4f327785132a52844.tar.bz2 |
* java/util/Date.java: Re-merged with Classpath.
From-SVN: r44497
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/java/util/Date.java | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index f3dd682..f768747 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2001-07-30 Tom Tromey <tromey@redhat.com> + + * java/util/Date.java: Re-merged with Classpath. + 2001-07-30 Jeff Sturm <jsturm@one-point.com> * java/net/natPlainDatagramSocketImpl.cc: Undefine bind if defined. diff --git a/libjava/java/util/Date.java b/libjava/java/util/Date.java index edd45f8..998cec1 100644 --- a/libjava/java/util/Date.java +++ b/libjava/java/util/Date.java @@ -667,7 +667,8 @@ public class Date implements Cloneable, Comparable, java.io.Serializable { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); - return cal.get(Calendar.DAY_OF_WEEK); + // For Calendar, Sunday is 1. For Date, Sunday is 0. + return cal.get(Calendar.DAY_OF_WEEK) - 1; } /** |