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

i18n: SimpleDateFormat doesn't know about timezones known to TimeZone

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • None
    • 1.1.1
    • core-libs
    • None
    • generic
    • generic

    Description

      java.text.SimpleDateFormat doesn't know about all of the timezones known
      to java.util.TimeZone. For example, the timezone for France (and most
      of Western Europe) is called "ECT" according to TimeZone. When formatted,
      it comes out as "GMT +01:00"

      This can easily be seen running HotJava 1.0 FCS with these properties set:

          user.timezone=ECT
          hotjava.clock.format=MMM d', 'h:mm a z

      (Don't use a pre-FCS version of HotJava, because it ignores user.timezone.
      Yes, I am writing this before HotJava goes FCS :-)


      I note that when I lived in France, I thought that the English abbreviation
      for my timezone was MET (Middle European Time), but TimeZone.java thinks
      that MET is Middle Eastern Time. Given this, perhaps it's better that
      the timezone be reported as GMT +01:00!

      Attachments

        Issue Links

          Activity

            People

              ssenthilsunw Shanmugam Senthil (Inactive)
              bfootesunw Bill Foote (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: