-
Bug
-
Resolution: Fixed
-
P2
-
1.1
-
1.1.1
-
generic, x86
-
generic, solaris_2.5.1
-
Not verified
DateFormatting of 24-March-97 is incorrect in German, it returns martedl it should be martedì. WORKS Correctly on WinNT.
Steps to reproduce
compile and run the attached code:
import java.util.TimeZone;
import java.util.Date;
import java.text.DateFormat;
import java.util.Locale;
public class tz {
public static void main( String argv[] ) {
// 24-Mar-97 23:00:00 GMT
Date date = new Date(859244400000L);
DateFormat formatter = DateFormat.getDateFormat( DateFormat.FULL, Locale.ITALY );
formatter.setTimeZone( TimeZone.getTimeZone( "ECT" ) );
String tempString = formatter.format( date );
if( ! tempString.equals( "martedì 25 marzo 1997" ) ) {
System.out.println( "Incorrect date format: " +
tempString );
}
else {
System.out.println( "Okey Dokey" );
}
}
}
Steps to reproduce
compile and run the attached code:
import java.util.TimeZone;
import java.util.Date;
import java.text.DateFormat;
import java.util.Locale;
public class tz {
public static void main( String argv[] ) {
// 24-Mar-97 23:00:00 GMT
Date date = new Date(859244400000L);
DateFormat formatter = DateFormat.getDateFormat( DateFormat.FULL, Locale.ITALY );
formatter.setTimeZone( TimeZone.getTimeZone( "ECT" ) );
String tempString = formatter.format( date );
if( ! tempString.equals( "martedì 25 marzo 1997" ) ) {
System.out.println( "Incorrect date format: " +
tempString );
}
else {
System.out.println( "Okey Dokey" );
}
}
}
- duplicates
-
JDK-4028628 DateFormat class: German value for March incorrect
-
- Closed
-
-
JDK-4031804 name of "french" locale wrong
-
- Closed
-
- relates to
-
JDK-4026954 International Chars like umlaute ä didnt work
-
- Closed
-