Project

Profile

Help

Bug #2667

closed

format-date() week-in-month numbering is incorrect

Added by Michael Kay about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
XPath conformance
Sprint/Milestone:
Start date:
2016-03-08
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6, 9.7
Fix Committed on Branch:
9.6, 9.7
Fixed in Maintenance Release:
Platforms:

Description

See W3C specification/test bugs 29493 and 29515.

Saxon gives the result of

format-date(xs:date('2008-03-01'), '[w]')

as 5 when the correct result is 4.

Actions #1

Updated by Debbie Lockett about 6 years ago

  • Status changed from New to Resolved
  • Fix Committed on Branch 9.6, 9.7 added

Fix committed for 9.7 and 9.6 branches. Correction made to getWeekNumberWithinMonth() method of DateValue: for days before week 1, calculate week number of last week of previous month (it is not always 5).

Actions #2

Updated by O'Neil Delpratt about 6 years ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.7.0.4 added

Bug fix applied in the Saxon 9.7.0.4 maintenance release. Leave open until patched applied in the 9.6 maintenance release.

Actions #3

Updated by O'Neil Delpratt almost 6 years ago

  • Status changed from Resolved to Closed
  • Fixed in Maintenance Release 9.6.0.9 added
  • Fixed in Maintenance Release deleted (9.7.0.4)

Bug fix applied in the Saxon 9.6.0.9 maintenance release.

Actions #4

Updated by O'Neil Delpratt almost 6 years ago

  • Sprint/Milestone set to 9.7.0.4
  • Fixed in Maintenance Release 9.7.0.4 added

Please register to edit this issue

Also available in: Atom PDF