[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 diff
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -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
+++ 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. */