Hi all,
I have a problem with the Date (java.util.Date) on Blackdown JDK118 on
Redhat Linux. I checked the OS with date command line, which prints the
correct local time.
What I have figured out is that JVM misinterprets time zones. What I get
from the command line is " Wed Jan 5 11:17:07 EST 2000", which is correct.
That is 11+ hours different from GMT in daylight savings time. However EST
in this case means the Melbounre time zone. If I use the following code,
what I get is "Tue Jan 04 19:17:44 EST 2000", which is the American east
time, which is definitely NOT Melbourne time. According to what I read, the
Melbourne time (Australian Estern time) should be coded as AET in Java. What
I fail to understand is that why JVM can't read what is provided by the OS.
Date trialTime = new Date();
System.out.println("now: " + trialTime.toString() );
What I am after is how we can configure the JVM to read the time zone
correctly if possible.
cheers
G
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]