I did mean in the week mode of the effort viewer, I'm sorry. It is indeed confusing, because bearing that in mind, some applications will consider a determined week numbering for 2010 (for instance TaskCoach follows the same numbering as our Oracle-driven applications), and some will consider another numbering (Outlook and the paper calendar I have in front of me tell me I'm on the 2nd week of 2010).
So in a way it is really not a bug, I would say, but rather a "design decision". I will open the bug anyway, so that the discussion is not lost (TaskCoach could be configurable, but if Python does not support different week numberings, it is probably not worthy). Could you just tell me *where* I should open that bug? Is it in the SourceForge page of TaskCoach? Thanks in advance! Tiago Grossinho --- In [email protected], Frank Niessink <fr...@...> wrote: > > Hi, > > 2010/1/7 grursinho <grursi...@...>: > > > > The 1st week of 2010, according to the calendar is the week from the 1st to > > the 2nd January. In TaskCoach, however, it is marked as the week from the > > 3rd to the 9th January, which corresponds in fact to the 2nd week of 2010. > > With "In TaskCoach", I presume you mean in the effort viewer in weekly > mode? Anyway, Task Coach uses the ISO standard for weeknumbers that's > build into the Python programming language. To quote from the Python > documentation: > > "The ISO calendar is a widely used variant of the Gregorian calendar. > See http://www.phys.uu.nl/~vgent/calendar/isocalendar.htm for a good > explanation. > > The ISO year consists of 52 or 53 full weeks, and where a week starts > on a Monday and ends on a Sunday. The first week of an ISO year is the > first (Gregorian) calendar week of a year containing a Thursday. This > is called week number 1, and the ISO year of that Thursday is the same > as its Gregorian year." (Quoted from > http://docs.python.org/library/datetime.html#datetime.date.isocalendar). > > > Is there a way to correct this in TaskCoach, or is it a System bug? > > There's no way to configure this at the moment. Python does provide > two other ways to calculate the week number: > - Week number of the year (Sunday as the first day of the week) as a > decimal number [00,53]. All days in a new year preceding the first > Sunday are considered to be in week 0. > - Week number of the year (Monday as the first day of the week) as a > decimal number [00,53]. All days in a new year preceding the first > Monday are considered to be in week 0. > > Please open a bug report for this (and copy the text above), so it > won't get lost. > > Thanks, Frank >
