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

The Time Zone id name for Japan is wrong.

XMLWordPrintable

    • 1.2
    • generic
    • windows_95

      In windows95 Japanese, java is one hour too fast.
      I've first thought this is just TimeZone instance, but testing following
      case shows more severe problem.

      Run the following program.

      Program : DateTime.java
      --------------------------------------------------------------------------
      import java.util.Date;
      import java.util.TimeZone;

      public class DateTime {
         public static void main(String[] arg) {
           Date now = new Date();
           System.out.println(now);
           System.out.println(TimeZone.getDefault().getID());
         }
      }
      --------------------------------------------------------------------------

      Result at 14:10
      --------------------------------------------------------------------------
      1998/06/16 15:10:24 GMT+10:00 1998
      Asia/Yakutsk
      --------------------------------------------------------------------------

      Above line of result show one hour forward. Notice that JST(Japan Standard Time) is GMT+9:00.
      The next line, 'Yakutsk' is Russian City. This should be like 'Asia/Tokyo'.
      When I use DateFormat for formating, result is same.

            okutsu Masayoshi Okutsu
            eishidasunw Etsuko Ishida (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: