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
|