* libexslt/date.c: fixed problem with day-of-week-in-month
(bug 157592) with patch from Sal Paradise
* tests/exslt/date/datetime.1.out: corrected expected output
after above fix
+Mon Nov 8 11:41:32 HKT 2004 William Brack <wbrack@mmm.com.hk>
+
+ * libexslt/date.c: fixed problem with day-of-week-in-month
+ (bug 157592) with patch from Sal Paradise
+ * tests/exslt/date/datetime.1.out: corrected expected output
+ after above fix
+
Mon Nov 1 15:57:24 CET 2004 Daniel Veillard <daniel@veillard.com>
* tests/general/bug-155.*, tests/general/Makefile.am,
*/
fdiw = (_exsltDateDayInWeek(fdiy, dt->value.date.year) + 6) % 7;
- ret = ((dt->value.date.day + fdiw) / 7) + 1;
+ ret = ((dt->value.date.day + fdiw - 1) / 7) + 1;
exsltDateFreeDate(dt);
}
}
- ret = (dt->value.date.day / 7) + 1;
+ ret = ((dt->value.date.day -1) / 7) + 1;
exsltDateFreeDate(dt);
week-in-year : 9
day-in-year : 59
day-in-month : 28
- day-of-week-in-month : 5
+ day-of-week-in-month : 4
day-in-week : 4
day-name : Wednesday
day-abbreviation : Wed