Platform Chinese Windows 95 - ** Time zone set to CST **
JDK1.1.6 build F
Run the following program
=======================DateFormatTest.java==================================
import java.text.*;
import java.util.*;
public class DateFormatTest {
public static void main(String args[]) {
long l = System.currentTimeMillis();
System.out.println("Time Zone :" +
DateFormat.getDateInstance().getTimeZone().getID());
System.out.println("Default format :" +
DateFormat.getDateInstance().format(new Date(l)));
System.out.println("Full format :" +
DateFormat.getDateInstance(DateFormat.FULL).format(new
Date(l)));
}
}
Set Locale to zh
=======================Output===============================================
java DateFormatTest
output with JDK1.1.6
Time Zone :GMT **** PROBLEM*****
Default format :1998-1-21
Full format :1998Dj1TB21HU
The output doesn't show the time zone correctly.