calendar widget shows wrong week number

Bug #1226515 reported by Marco Di Francesco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Community Backports (Web)
Status tracked in 7.0
7.0
New
Undecided
Unassigned

Bug Description

In some case, the week number displayed in date widget (eg on project form) is wrong.
For example (see also attached screenshot):
OpenERP show the week from 6 to 12 Jan as a first week of the year.

ISO says:

"There are mutually equivalent descriptions of week 01:
the week with the year's first Thursday in it (the formal ISO definition),
the week with 4 January in it,
the first week with the majority (four or more) of its days in the starting year, and
the week starting with the Monday in the period 29 December – 4 January.
If 1 January is on a Monday, Tuesday, Wednesday or Thursday, it is in week 01. If 1 January is on a Friday, Saturday or Sunday, it is in week 52 or 53 of the previous year (there is no week 00). 28 December is always in the last week of its year."

So, I expect that the week from 6 to 12 Jan to be displayed as a second week of the year because the first of Jan is on Tue.
Regards.

Revision history for this message
Marco Di Francesco (marco-difra) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.