-
Bug
-
Resolution: Duplicate
-
P4
-
6u21
-
sparc
-
solaris_10
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
GregorianCalendar.getFirstDayOfWeek() for Latvian locale returns Sunday as first day of the week - should be Monday as per ISO8601 which is adopted across all European countries.
Seems that problem with (a way) earlier opened bug 4527203 is still there for all "small" European countries, including Latvia.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Locale.setDefault(new Locale("lv", "LV"));
GregorianCalendar gc = new GregorianCalendar();
int firstday = gc.getFirstDayOfWeek();
if (firstday == Calendar.MONDAY) {
System.out.println("The first day is MONDAY");
}
if (firstday == Calendar.SUNDAY) {
System.out.println("The first day is SUNDAY");
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
first day of the week in Latvia is MONDAY
REPRODUCIBILITY :
This bug can be reproduced always.
A DESCRIPTION OF THE PROBLEM :
GregorianCalendar.getFirstDayOfWeek() for Latvian locale returns Sunday as first day of the week - should be Monday as per ISO8601 which is adopted across all European countries.
Seems that problem with (a way) earlier opened bug 4527203 is still there for all "small" European countries, including Latvia.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Locale.setDefault(new Locale("lv", "LV"));
GregorianCalendar gc = new GregorianCalendar();
int firstday = gc.getFirstDayOfWeek();
if (firstday == Calendar.MONDAY) {
System.out.println("The first day is MONDAY");
}
if (firstday == Calendar.SUNDAY) {
System.out.println("The first day is SUNDAY");
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
first day of the week in Latvia is MONDAY
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-7101495 In Latvia first day of week is Monday
- Closed