# HG changeset patch # User jwe # Date 1165433488 0 # Node ID 312bd357684436cc7005a6b8c0b79ddfda71f3ca # Parent 9795a2091f7f5e02d36a0608a9899971af8132c2 [project @ 2006-12-06 19:31:28 by jwe] diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2006-12-06 John W. Eaton + + * strptime.c (day_of_the_week): Use code from current glibc sources. + 2006-12-05 John W. Eaton * lo-utils.cc (octave_read_double): If we see '+' or '-' but not diff --git a/liboctave/strptime.c b/liboctave/strptime.c --- a/liboctave/strptime.c +++ b/liboctave/strptime.c @@ -239,7 +239,7 @@ + (((corr_year / 4) / 25) / 4) + __mon_yday[0][tm->tm_mon] + tm->tm_mday - 1); - tm->tm_wday = wday % 7; + tm->tm_wday = ((wday % 7) + 7) % 7; } /* Compute the day of the year. */