title: Java Current Time is 2 hours ahead of my system's Time
body: <p>I am using following Java code to get current date and time:</p>
  
  <pre><code>DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
  DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
  Date date = new Date();
  System.out.println(dateFormat.format(date));
  System.out.println(timeFormat.format(date));
  </code></pre>
  
  <p>The Output Time is always 2 hours ahead of my system time or my Time Zone. For example if above code outputs following time:
  <br/>
  <code>11:44:43</code>
  <br/>
  Then my system's time is:<br/>
  <code>09:44:43</code>
  <br/></p>
  
  <p>Please help me out to solve this problem!</p>