Mercurial > octave-nkf
changeset 6205:312bd3576844
[project @ 2006-12-06 19:31:28 by jwe]
author | jwe |
---|---|
date | Wed, 06 Dec 2006 19:31:28 +0000 |
parents | 9795a2091f7f |
children | cb8c62c78b42 |
files | liboctave/ChangeLog liboctave/strptime.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog Wed Dec 06 18:05:37 2006 +0000 +++ b/liboctave/ChangeLog Wed Dec 06 19:31:28 2006 +0000 @@ -1,3 +1,7 @@ +2006-12-06 John W. Eaton <jwe@octave.org> + + * strptime.c (day_of_the_week): Use code from current glibc sources. + 2006-12-05 John W. Eaton <jwe@octave.org> * lo-utils.cc (octave_read_double): If we see '+' or '-' but not
--- a/liboctave/strptime.c Wed Dec 06 18:05:37 2006 +0000 +++ b/liboctave/strptime.c Wed Dec 06 19:31:28 2006 +0000 @@ -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. */