-
Bug
-
Resolution: Fixed
-
P4
-
2.0.1, 1.1.7
-
kestrel
-
sparc
-
solaris_2.6, solaris_7
I've included a simple test case below. Apparently, Australia also has a time zone know as "EST", the same id used for the US Eastern Standard Time. When an app needs to display a date/time value in Australia's "EST", it displays the date/time using the US "EST".
import java.util.*;
import java.text.*;
class Test {
public static void main(String[] args) {
SimpleDateFormat fm = new SimpleDateFormat("MMM d HH:mm:ss");
fm.setTimeZone(TimeZone.getDefault());
System.out.println("Date/time is: " + fm.format(new Date()));
}
}
import java.util.*;
import java.text.*;
class Test {
public static void main(String[] args) {
SimpleDateFormat fm = new SimpleDateFormat("MMM d HH:mm:ss");
fm.setTimeZone(TimeZone.getDefault());
System.out.println("Date/time is: " + fm.format(new Date()));
}
}
- relates to
-
JDK-4158102 Solaris: TimeZone misinterprets zone id MET as "Iran Standard Time"
-
- Closed
-
-
JDK-4208984 Win32: Wrong default timezone in Melbourne Australia
-
- Closed
-