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

Default TimeZone setting for PRC is wrong.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.1.8
    • core-libs

      JDK Version: jdk118
      OS: Solaris 2.6
      Locale: C, zh

      In this build, using TimeZone.getDefault() to get TimeZone for Simplified
      Chinese (LANG=zh) locale (java locale should be zh_CN), we will get
      wrong TimeZone as "CST". In fact CST is a TimeZone of USA.
      In jdk1.2fcs, the TimeZone for PRC in default is Asia/Shanghai (GMT+08:00).

      That is, if view the demo Clock in jdk1.1.8 packages, you will got
      a wrong date & time value, in fact, it display a date & time of a
      area of USA for PRC.
      Please try demo Clock in Solaris 2.6 zh locale. (TZ=PRC)

      jim.hu@prc 1998-12-11

            aliusunw Alan Liu (Inactive)
            jhusunw Jim Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: