Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4108407

Chinese time zone CTT is not recogonized correctly.

XMLWordPrintable

    • generic, sparc
    • generic, solaris_2.6

      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.

            aliusunw Alan Liu (Inactive)
            ssenthilsunw Shanmugam Senthil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: