-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.2.2
-
generic
-
solaris_2.6
The following JDKs will display the wrong DST for Australia/Sydney timezone:
java 1.3.0 incorrect
java 1.2.2_09 incorrect
java 1.2.2_08 incorrect
java 1.2.2_07a incorrect
java 1.2.2_06 incorrect
My test program is below:
import java.util.*;
public class LocalTime{
public static void main(String args[]){
Calendar c = Calendar.getInstance();
String des, delim = "[],";
StringTokenizer destok;
System.out.println(new Date().toString());
des = c.toString();
destok = new StringTokenizer(des, delim);
System.out.println("System default calendar settings:");
while (destok.hasMoreTokens())
System.out.println(" " + destok.nextToken());
}
}
Test Cases:
After running the program, the differences in the output from JDK 1.3.1, 1.2.2.07a, and 1.2.2.06 are:
startMonth=9 jdk 1.3.1
startMonth=7 jdk 1.2.2.07a and 1.2.2.06
startTimeMode=1 jdk 1.3.1
no such attr jdk 1.2.2.07a and 1.2.2.06
endTime=7200000 jdk 1.3.1
endTime=10800000 jdk 1.2.2.07a and 1.2.2.06
endTimeMode=1 jdk 1.3.1
no such attr jdk 1.2.2.07a and 1.2.2.06
HOUR=6,HOUR_OF_DAY=18 jdk 1.3.1
HOUR=7,HOUR_OF_DAY=19 jdk 1.2.2.07a and 1.2.2.06
DST_OFFSET=0 jdk 1.3.1
DST_OFFSET=3600000 jdk 1.2.2.07a and 1.2.2.06
java 1.3.0 incorrect
java 1.2.2_09 incorrect
java 1.2.2_08 incorrect
java 1.2.2_07a incorrect
java 1.2.2_06 incorrect
My test program is below:
import java.util.*;
public class LocalTime{
public static void main(String args[]){
Calendar c = Calendar.getInstance();
String des, delim = "[],";
StringTokenizer destok;
System.out.println(new Date().toString());
des = c.toString();
destok = new StringTokenizer(des, delim);
System.out.println("System default calendar settings:");
while (destok.hasMoreTokens())
System.out.println(" " + destok.nextToken());
}
}
Test Cases:
After running the program, the differences in the output from JDK 1.3.1, 1.2.2.07a, and 1.2.2.06 are:
startMonth=9 jdk 1.3.1
startMonth=7 jdk 1.2.2.07a and 1.2.2.06
startTimeMode=1 jdk 1.3.1
no such attr jdk 1.2.2.07a and 1.2.2.06
endTime=7200000 jdk 1.3.1
endTime=10800000 jdk 1.2.2.07a and 1.2.2.06
endTimeMode=1 jdk 1.3.1
no such attr jdk 1.2.2.07a and 1.2.2.06
HOUR=6,HOUR_OF_DAY=18 jdk 1.3.1
HOUR=7,HOUR_OF_DAY=19 jdk 1.2.2.07a and 1.2.2.06
DST_OFFSET=0 jdk 1.3.1
DST_OFFSET=3600000 jdk 1.2.2.07a and 1.2.2.06
- duplicates
-
JDK-4257314 RFE: TimeZone only supports year 2000
- Resolved
- relates to
-
JDK-4230123 TimeZones loaded unnecessarily
- Resolved
-
JDK-4177570 Wrong daylight saving time setting for EET
- Closed