Changeset 1427

Show
Ignore:
Timestamp:
18/12/09 17:36:35 (3 months ago)
Author:
bruno
Message:

improve comment

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tupper/trunk/tupper-site/src/main/java/org/kauriproject/tupper/resource/CalendarUtil.java

    r1426 r1427  
    3333        // For the first and last week of the year, we have to be careful 
    3434        // that the year-value doesn't shift because the day of the week 
    35         // falls in the other year. 
     35        // falls in the other year. For example, jan 1, 2010 falls in week 
     36        // 53 of 2009. In this case the calendar can be in a state where 
     37        // the year is 2010 but the week is 53. In such cases, we want the 
     38        // year that corresponds to the week number. 
    3639        if (week == 1) { 
    3740            calendar.set(Calendar.DAY_OF_YEAR, 1);