2 Replies Latest reply: Mar 15, 2008 9:03 PM by 807591 RSS

    DateFormat not showing correct time...

    807591
      Using:
      DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                  java.util.Date date = new java.util.Date();
                  System.out.println("Current Date Time : " + dateFormat.format(date));
      When I run, it shows 2008-3-15 17:25:25, but it is actually already 2008-3-16 01:25:25...

      How do I change it to reflect the correct time?

      P.s: my system clock is correct with the correct GMT+8 timezone.