OSDN Git Service

* java/util/Date.java: Re-merged with Classpath.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2001 03:01:47 +0000 (03:01 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2001 03:01:47 +0000 (03:01 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44497 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/util/Date.java

index f3dd682..f768747 100644 (file)
@@ -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.
index edd45f8..998cec1 100644 (file)
@@ -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;
   }
 
   /**