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

TimeZone.getDisplayName() does not always return a description of the Timezone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0
    • core-libs
    • None

      TimeZone.getDisplayName() does not always return a description of
      the timezone abbreviation but instead somtimes returns GMT+/-#
         
      The 3 letter abbrevaiton was always explained.
       For example:
          In Java: AST is Alaksa Standard Time
          Other places: AST is Altantic Standard Time
         
          Not having this description has caused some problems.
          It is missing for: ACT, AET, AGT, ART, BET, BST, CAT, EAT, EET, IST, MET,
                             MIT, NET, NST, PLT, PRT, SST, UTC, VST

      The output we can make:
      ACT GMT+9.5
      AET GMT+10
      AGT GMT-3
      ART GMT+2
      AST GMT-9 Alaska Standard Time
      BET GMT-3
      BST GMT+6
      CAT GMT+2
      CNT GMT-3.5 Newfoundland Standard Time
      CST GMT-6 Central Standard Time
      CTT GMT+8 China Standard Time
      EAT GMT+3
      ECT GMT+1 Central European Standard Time
      EET GMT+2
      EST GMT-5 Eastern Standard Time
      GMT GMT+0 Greenwich Mean Time
      HST GMT-10 Hawaii Standard Time
      IET GMT-5 Eastern Standard Time
      IST GMT+5.5
      JST GMT+9 Japan Standard Time
      MET GMT+3.5
      MIT GMT-11
      MST GMT-7 Mountain Standard Time
      NET GMT+4
      NST GMT+12
      PLT GMT+5
      PNT GMT-7 Mountain Standard Time
      PRT GMT-4
      PST GMT-8 Pacific Standard Time
      SST GMT+11
      UTC GMT+0
      VST GMT+7

      > java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

      This is being run on a Serengeti System Controller.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: