-
Bug
-
Resolution: Duplicate
-
Medium
-
4.0.1
-
None
-
4
-
The calendar pop will show a different starting day or the week dpendiong how where it is called. For exmple the issue navigator popup is correct but the work log one is wrong.
We have 2 ways to invoke the datepicker
macros.vm for Velocity files and datepicker2.jsp. The first one is correct
Calendar.setup({
firstDay : ($currentCalendar.firstDayOfWeek) -1, // first day of the week
and the second one (datepicker2) is wrong
Calendar.setup({
firstDay : <%= Calendar.getInstance(locale).getFirstDayOfWeek()%>, // first day of the week
The reason the -1 is needed is that the Calendar js uses 0 as Sunday, and 1 as Monday while Java uses 1 as Sunday and 2 as Monday
We need to fix this. Its a very easy fix.
As a work around customers need to change
template/standard/datepicker.jsp and template/single/datepicker.jsp
you should change line 69 to be
Calendar.setup({
firstDay : <%= Calendar.getInstance(locale).getFirstDayOfWeek() -1 %>, // first day of the week
- duplicates
-
JRASERVER-10088 Calendar in date picker gets week numbers wrong
- Closed
- is related to
-
JRASERVER-9048 Calendar week begins with sunday independently from locale
- Closed
-
JRASERVER-19946 Wrong calender week is displayed
- Gathering Impact