|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by durgakar in Java Programming Language, Java Standard Edition
Hi All,
I have a requirement where I need to build a jar file and place it in a remote desktop placed in Canada. I build my jar locally in my box at India and then place the jar file on to the remote machine.
When I execute the jar over there I am getting one hour less that the desired time.
The logic I have used to get the date time is :
SimpleDateFormat sdf = new SimpleDateFormat("yyyy_MM_
dd_hh_mm_s
s");
Date d = new Date(System.currentTimeMil
lis());
String dateStr = sdf.format(d);
Now i assume that the system.currentTimeMillis will pick the time from the remote machine as I placed the jar there but it doesn't seem to work.
Any help would be appreciated.
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625