cancel
Showing results for 
Search instead for 
Did you mean: 

wrong week number in record working time application

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

siarhei_pisarenka3
Active Contributor
0 Kudos

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