Java Date and Time
I am using the following code to create data and time values for a program and the Date class i am using is java.util.Date.
Date d = new Date();
System.out.println(d.toString());
When it prints the date the time is one hour behind my operating system(which has the correct time), Windows XP, the same occurs when a new class is created and has time, date and name information in the comments at the top of the class.
However when i run the program on another computer it works.
Can anyone help me with this and explain a way to make sure that the Operating systems time is always used.
Thank you very much.

