What does your Java program look like? How does it print the current time?
As you can read in the API documentation, System.currentTimeMillis() returns the number of milliseconds that have passed since a specific point in time: January 1, 1970, 00:00 UTC.
You can get a java.util.Date object that represents the current date and time simply by creating a new Date object with the no-args constructor. If you convert this to a
String by calling toString() (implicitly or explicitly), you will see the date and time in the timezone that the operating is set to.
If you want to display it in a different timezone, use a DateFormat object to convert the Date to a String and set the desired timezone on the DateFormat object. For example:
The output of this is (on my system):
Tue Aug 07 13:14:50 CEST 2007
2007-08-07 16:44:50 IST