-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b80
-
x86
-
windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2154651 | 6u10 | Jiri Tusla | P4 | Resolved | Fixed | b12 |
JDK-2159190 | OpenJDK6 | Jiri Tusla | P4 | Resolved | Fixed | b06 |
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Windows XP
A DESCRIPTION OF THE PROBLEM :
SimpleDateFormat formats a date time in Finnish Improperly.
The format MMMM hh:mm:ss a results in September 11:23:18 AM in English and syyskuu 11:23:18 AM in Finnish.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Format a date using SimpleDateFormat with the pattern "MMMM hh:mm:ss a" and Finnish Locale
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
syyskuu 11:23:18 AP
ACTUAL -
syyskuu 11:23:18 AM
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
SimpleDateFormat format = new SimpleDateFormat("MMMM hh:mm:ss a",new Locale("fi","FI");
System.out.println("Current time in locale " + locale.toString() + " :" + format.format(new Date()));
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Provide DateFormatSymbols with the proper translations inthe SimpleDateFormat constructor instead of the Locale
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Windows XP
A DESCRIPTION OF THE PROBLEM :
SimpleDateFormat formats a date time in Finnish Improperly.
The format MMMM hh:mm:ss a results in September 11:23:18 AM in English and syyskuu 11:23:18 AM in Finnish.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Format a date using SimpleDateFormat with the pattern "MMMM hh:mm:ss a" and Finnish Locale
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
syyskuu 11:23:18 AP
ACTUAL -
syyskuu 11:23:18 AM
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
SimpleDateFormat format = new SimpleDateFormat("MMMM hh:mm:ss a",new Locale("fi","FI");
System.out.println("Current time in locale " + locale.toString() + " :" + format.format(new Date()));
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Provide DateFormatSymbols with the proper translations inthe SimpleDateFormat constructor instead of the Locale
- backported by
-
JDK-2154651 Dateformat - AM-PM indicator in Finnish appears to be from English
-
- Resolved
-
-
JDK-2159190 Dateformat - AM-PM indicator in Finnish appears to be from English
-
- Resolved
-