Incorrect Date in Java
Posted
by Polaris
on Stack Overflow
See other posts from Stack Overflow
or by Polaris
Published on 2010-04-22T09:33:29Z
Indexed on
2010/04/22
9:43 UTC
Read the original article
Hit count: 252
I use next code to print current time
Calendar cal = Calendar.getInstance();
System.out.println(cal.getTime());
I have Windows XP sp3 istalled. Current time in system tray is 14:30. But this code return 13:30
Why returned time is wrong?
© Stack Overflow or respective owner