My system time differs from what java\'s new Date() tells (+ 4 hours), so I think it\'s because some java settings. How can I make java time to be always as my linu
Calendar calendar = Calendar.getInstance(TimeZone.getDefault()); Date myDate = calendar.getTime(); System.out.println(myDate);
Is this code printing the right date/time? Else, there's some other problem.