title: How to tackle daylight savings using TimeZone in Java
body: <p>I have to print the EST time in my Java application. I had set the time zone to EST using:</p>
  
  <pre><code>Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("EST"));
  </code></pre>
  
  <p>But when the daylight savings is being followed in this timezone, my code does not print the correct time (it prints 1 hour less).</p>
  
  <p>How to make the code work to read the correct time always, irrespective of whether the daylight savings are being observed or not?</p>
  
  <p>PS: I tried setting the timezone to EDT, but it doesn't solve the problem.</p>