AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
Expand all | Collapse all

AIX Time zone conflict with Java function

  • 1.  AIX Time zone conflict with Java function

    Posted Wed February 03, 2010 08:19 AM

    Originally posted by: gan1


    I have Java 1.5.0.0 installed on AIX 5.3.

    My system time is set correctly and both date and smitty confirm the correct date, time, and

    timezone:

    #date
    Wed Feb 3 07:23:09 EST 2010

    However, when I check the sytem time in Java (Date(System.currentTimeMillis())), I get:
    Wed Feb 3 02:23:09 EST 2010

    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?
    #AIX-Forum


  • 2.  Re: AIX Time zone conflict with Java function

    Posted Tue March 09, 2010 12:39 PM

    Originally posted by: Zinnid


    Please check this tool (JTZU) as JAVA manages it's own timetable : http://www.ibm.com/developerworks/forums/post!reply.jspa?threadID=317668

    Hope it helps!
    #AIX-Forum