diff options
author | William M. Brack <wbrack@src.gnome.org> | 2005-10-04 12:37:43 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2005-10-04 12:37:43 +0000 |
commit | ac06b251096ce7e644eb50664fc67f48e4487e25 (patch) | |
tree | 5b8e90f3a807aacbe88186eaadf5a4adc09b66db /libexslt | |
parent | 67232e9682e74fc129ad771bfdf98ddc4f50e061 (diff) | |
download | libxslt-ac06b251096ce7e644eb50664fc67f48e4487e25.tar.gz libxslt-ac06b251096ce7e644eb50664fc67f48e4487e25.tar.bz2 libxslt-ac06b251096ce7e644eb50664fc67f48e4487e25.zip |
applied fix to date:week-in-year posted to the mailing list by Thomas
* libexslt/date.c: applied fix to date:week-in-year posted to
the mailing list by Thomas Broyer
* tests/exslt/date/date.1.out, tests/exslt/date/datetime.1.out:
updated to reflect above fix
Diffstat (limited to 'libexslt')
-rw-r--r-- | libexslt/date.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexslt/date.c b/libexslt/date.c index 641fde35..2558e472 100644 --- a/libexslt/date.c +++ b/libexslt/date.c @@ -2141,8 +2141,8 @@ exsltDateWeekInYear (const xmlChar *dateTime) */ fdiw = (_exsltDateDayInWeek(fdiy, dt->value.date.year) + 6) % 7; - ret = DAY_IN_YEAR(dt->value.date.day, dt->value.date.mon, - dt->value.date.year) / 7; + ret = (DAY_IN_YEAR(dt->value.date.day, dt->value.date.mon, + dt->value.date.year) + fdiw) / 7; /* ISO 8601 adjustment, 3 is Thu */ if (fdiw <= 3) |