Date is not displayed properly in Java application

viveksrikanth

New Member
Hi,

I have my java application running on windows Xp previosly and the application has a feature to show the current time on its screen. Recently i have upgraded my OS to vista and set the time/date setting in vista to my local current time.

After i launch my application i see the date and time displayed on the screen is not my current date and time. Instead it is showing the GMT time as the current time on my application screen. The JDK using is 1.4.2_06.

Suggest me what configuration changes to be done for it to work properly on vista.

Thanks,
Vivek
 

My Computer

Sounds like something has changed underneath you. Most likely the JRE isn't calling the relevant APIs the right way under Vista, assuming you used the same JDK, JRE, and app versions under XP.

I'm assuming the app is your code. Can you paste the relevant method portions here? I'm quite curious.
 

My Computer

Hi, I had the same problem and came here looking for help. But in the middle I solved the problem (or it solved itself). Just returning to share what happened...

I just adjusted the system time (of course whit the same date and time of the moment) and then my java application started to display the time properly.
 

My Computer

Back
Top