on 05-29-2012 4:15 PM
Hello Guys,
Need one help:
Case 1:
When user is accessing the Record Working Time application from
Employee Self Service Role (which is configured in Homepage Framework),
the week number in the calendar for 8th August 2011 is 32.
The browser language is English (United Kingdom) [en-GB].
Case 2:
In the same browser, when the same standard Record Working Time
application is accessed through customized role, the week number for
8th August 2011 is 33.
In this case, we assume that it is taking en-US as the local.
Any idea why the same record working time application is giving different week number when accessed differently?
Regards,
Priya
Hi Priya
I believe that's because the locales are different in your two cases. The number of week in Java is calculated by
calendar.get(Calendar.WEEK_OF_YEAR);
which depends on these two methods:
calendar.getFirstDayOfWeek()
calendar.getMinimalDaysInFirstWeek()
The last two settings depend on the current locale of the calendar.
Regards, Siarhei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.