-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
1.3.0
-
x86
-
windows_2000
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)
======================================================================