09-21-2006
7,
0
Join Date: Sep 2006
Last Activity: 22 September 2006, 11:32 AM EDT
Posts: 7
Thanks Given: 0
Thanked 0 Times in 0 Posts
Help ... Java not reading correct AIX system time.
I have Java 1.4.2 (IBM AIX build ca142-20050929a SR3) installed on AIX 5.3.
My system time is set correctly and both date and smitty confirm the correct date, time, and timezone:
#date
Thu Sep 21 15:12:42 EDT 2006
However, when I check the sytem time in Java (Date(System.currentTimeMillis())), I get:
Thu Sep 21 10:12:42 GMT-05:00 2006
It looks like Java is reading the system time as the GMT time and then subtracting 5 hours to get to EDT; however I went through smitty and confirmed that my system time and timezone are both set correctly.
Any ideas?