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

wrong time offsets, and short time representation [Solaris's jdk1.2.1's TimeZone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.2.1
    • core-libs

      The jdk1.2.1's SimpleDateFormat.format() either produces GMT+xx strings instead of
      the expected 3 letter acronyms (short time representation) for specific
      time zones (see table below), and/or displays the wrong times (1 hour offset).
      Also, for some timezones, the string displayed by the java VM does not match what is returned by the Solaris date command.

      Timezone setting (TZ) Solaris Date Java VM Time Calculation
      --------------------- -------------- ------------ ----------------------
      GMT GMT GMT+00:00 OK
      GB BST GMT+01:00 OK
      MET MET DST CEST OK
      W-SU MSD GMT+04:00 OK
      Australia/West WST CST OK
      Australia/North CST GMT+09:30 OK
      Australia/NSW EST GMT+10:00 OK
      EET EET DST GMT+03:00 OK
      Brazil/West WST GMT-04:00 OK
      Israel IST GMT+03:00 1 hour difference


      1. Change time zone setting by changing the TZ value.
      setenv TZ <timezone>
      2. Note the date, and time and timezone label.
      3. Using java, do a System.out.println(formatter.format(currentTime))
        where formatter is a SimpleDateFormat, and currentTime is a
      Data object.

            okutsu Masayoshi Okutsu
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: