I have an app running on two Centos machine. The app running on both servers is identical
when I run the following code, on one machine I get correct time but on the second server, I get 5 hrs early time.
Corret : 22/04/2009 10:22:23
Wrong : 22/04/2009 05:22:23
linux date command and locale command outputs for both servers are same. Can someone tell me where else I need to check?
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");