Hi.

I think there's a bug about week numbers in datefields.
When we click the button to display the calendar, we can see on the left 
most column the week numbers.

According to ISO week-numbering, weeks begin the Monday, and the first 
week of the year is the one that contains the first Tuesday of January. 
(if January 1st is a Tuesday, the 1st week will then begin in December 
of the previous year).

But I noticed 2 things that differ in qooxdoo datefields.

1) In qooxdoo, weeks always begin on Sunday. According to ISO it should 
be on Monday, but this is more a detail of representation, since a 
calendar line goes from Sunday to Saturday.

2) Weeks numbering seems false for most of the years. The first week 
seems to begin on the second line of January in the little qooxdoo 
calendar, which generally makes the first week begin with the first 
Sunday, but sometimes on the second Sunday if January 1st is a Sunday 
like in 2006.
I first thought the week numbers in the calendar were static (2nd line 
of the calendar for january  = 1st week of the year), but there are some 
odd cases : in 2010, January 3rd to January 9th is week 53, and the 
first week of 2010 begins on January 10th.

You can find more details about ISO week-numbering at 
http://www.phys.uu.nl/~vgent/calendar/isocalendar.htm, or on Wikipedia 
(http://en.wikipedia.org/wiki/ISO_week_date).
You can calculate weeks numbers here:  
http://www.personal.ecu.edu/mccartyr/isowdcal.html

-- 
Loic - Novlog


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to