* java/util/Date.java: Re-merged with Classpath.

From-SVN: r44497
This commit is contained in:
Tom Tromey 2001-07-31 03:01:47 +00:00 committed by Tom Tromey
parent 8882829102
commit e8b3bcfd3f
2 changed files with 6 additions and 1 deletions

View 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.

View 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;
}
/**