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

RFE: America/Toronto is missing from the TimeZone IDs list

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs



      Name: jk109818 Date: 06/26/2000


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



      This is a bug of omission rather than a compile or runtime error bug. The
      TimeZone IDs list (method java.util.TimeZone.getAvailableIDs) contains no
      mention of Toronto, Canada. The list contains many smaller cities, but no
      mention of America/Toronto. Surely this is an oversight and not intentional.

      One might use America/Monteal instead of America/Toronto, but this is quite far
      away. The population of Toronto is in the millions. Surely this is sufficient
      to get it into this list.


      Compile and run the following with no arguments and expect output to stdout:


      public class WhereIsToronto
      {
         public static void main(String[] args)
         {
            String[] TZs = java.util.TimeZone.getAvailableIDs();

            for (int i = 0; i < TZs.length; i++)
      System.out.println(TZs[i]);
         }
      }
      (Review ID: 105870)
      ======================================================================

            okutsu Masayoshi Okutsu
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: