Hi there, I had to deal with this topic a few months ago, and I took this source: http://www.php.net/manual/en/function.strftime.php
which quotes that the first week of the year needs to have 4 week days, so the first Thursday of the year would decide, not Tuesday (the weeks being counted from Monday to Sunday when calculating the week number, according to ISO). Regarding this, the calculation in qooxdoo's DateChooser would calculate correctly (eg. compare January 2009 to January 2010). Maybe you can confirm - or prove me wrong. Greetings, Stefan Christian Schmidt wrote: > Hi Loic, > > I'm not a expert for the DateField. The only think I know is, that the > first week day is localized. Monday for e.q. Germany and Sunday for e.q. > USA. > > Cheers, > Chris > > Loic - Novlog schrieb: >> 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 >> >> > > ------------------------------------------------------------------------------ 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
