JDK-6610748 : Dateformat - AM-PM indicator in Finnish appears to be from English
  • Type: Bug
  • Component: globalization
  • Sub-Component: locale-data
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-09-28
  • Updated: 2012-12-20
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u10Fixed 7 b80Fixed OpenJDK6Fixed
Description
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

Comments
EVALUATION ported fix to java 7.
09-12-2009

EVALUATION There is a conformance between request and the CLDR. Adding the section: { "AmPmMarkers", new String[] { "ap.", // am marker "ip." // pm marker } }, into the j2se:src/share/classes/sun/text/resources/FormatData_fi.java
04-10-2007

EVALUATION Jiri will take care of this locale element bug.
01-10-2007