title: Java set timezone at runtime
body: <p>I am working on a desktop application. It would get input as a text file from user having contents like this :</p>
  
  <pre><code>..................................   
  ..................................
  
  Mon Jul  9 14:41:07 MDT 2012
  ..................................
  ..................................
  ..................................
  </code></pre>
  
  <p>I am using this information and creating a timeseries chart using jfreechart library. Timezone could be anything available in the world. But when I use this file its default timezone is sytem's timezone(IST) so doesn't show MDT time. When I tried to capture timezone from date and then used </p>
  
  <pre><code>TimeZone.setDefault(TimeZone.getTimeZone("MDT"));
  </code></pre>
  
  <p>It didn't work. How can I change the default timezone in Java when I am having abbreviation for timezone like MDT, CDT etc?</p>