-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.1
-
generic
-
generic
DateFormatting of 24-March-97 is incorrect in German, it returns Mdrz it should be März. 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.LONG, Locale.GERMANY );
formatter.setTimeZone( TimeZone.getTimeZone( "ECT" ) );
String tempString = formatter.format( date );
if( ! tempString.equals( "25. März 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.LONG, Locale.GERMANY );
formatter.setTimeZone( TimeZone.getTimeZone( "ECT" ) );
String tempString = formatter.format( date );
if( ! tempString.equals( "25. März 1997" ) ) {
System.out.println( "Incorrect date format: " +
tempString );
}
else {
System.out.println( "Okey Dokey" );
}
}
}
- duplicates
-
JDK-4028638 DateFormat class: Italian value for Tuesday incorrect
-
- Closed
-
- relates to
-
JDK-4026954 International Chars like umlaute ä didnt work
-
- Closed
-