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

Chinese time zone CTT is not recogonized correctly.

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.6

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: