United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6610748 Dateformat - AM-PM indicator in Finnish appears to be from English
6610748 : Dateformat - AM-PM indicator in Finnish appears to be from English

Details
Type:
Bug
Submit Date:
2007-09-28
Status:
Closed
Updated Date:
2012-12-20
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
globalization
OS:
windows_xp
Sub-Component:
locale-data
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
7

Related Reports
Backport:
Backport:

Sub Tasks

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.
                                     
2009-12-09
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
                                     
2007-10-04
EVALUATION

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



Hardware and Software, Engineered to Work Together