[
https://jira.jboss.org/jira/browse/RF-8249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12509066#action_12509066
]
Nick Belaevski commented on RF-8249:
------------------------------------
I have paper-printed calendar with weeks numbering for European standard (where
min days is 4) - and the week of 1st Jan is marked as 53rd, but not 1st.
Here is what JDK states:
Locale aLocale = new Locale("de", "DE");
Calendar calendar = Calendar.getInstance(aLocale);
calendar.setTimeZone(TimeZone.getTimeZone("GMT"));
calendar.clear();
calendar.set(Calendar.YEAR, 2010);
calendar.set(Calendar.MONTH, Calendar.JANUARY);
calendar.set(Calendar.DATE, 1);
System.out.println(aLocale.getDisplayLanguage(Locale.US));
System.out.println(calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println(calendar.getTime());
calendar.add(Calendar.DATE, -1);
System.out.println(calendar.get(Calendar.WEEK_OF_YEAR));
System.out.println(calendar.getTime());
> Calendar: Incorrect week numbering for first and last week of year
> ------------------------------------------------------------------
>
> Key: RF-8249
> URL: https://jira.jboss.org/jira/browse/RF-8249
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 3.3.2.GA
> Reporter: Mareks Tumass
> Assignee: Nick Belaevski
> Fix For: 3.3.3.CR1
>
> Attachments: weekNumbers.PNG
>
>
> Week numbering in calendar doesn't match:
> Calendar is opened for december, 2009. First two days of next year january
> belong to 53 week of 2009, however week starting from 3rd january is marked
> as 1st week of 2010 year, should be 2nd. When calendar is opened for january,
> 2010 then week starting from 3rd january is marked as 2nd week of 2010! Week
> numbering must match.
> minDaysInFirstWeek=1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues