title: java- get TimeZone from ID
body: <p>For getting timezone offset of Singapore, if I try "Singapore" as ID, I will get correct one as like below:</p>
  
  <pre><code>TimeZone timeZone = TimeZone.getTimeZone("Singapore");
      int offset = timeZone.getRawOffset();//It prints 28800000 which is correct
  </code></pre>
  
  <p>But If try SGT in place of Singapore as below, It will return offset of GMT because it does not understand SGT as id:</p>
  
  <pre><code>TimeZone timeZone = TimeZone.getTimeZone("SGT");
      int offset = timeZone.getRawOffset();//It prints 0 which is incorrect and should be 28800000 
  </code></pre>
  
  <p>Any way for getting correct offset for Singapore by using "SGT" in place of "Singapore"????</p>
  
  <p>Above issue is not produced for ID "America/Los_Angeles". "PST" and "America/Los_Angeles" returns same offset.</p>
  
  <p>Regards </p>
  
  <p>EDITED--</p>
  
  <p>If I have date like "2015-02-08 11:18 AM SGT" then ?????</p>
  
  <p>Still am I not able to get offset of "Singapore" using above date?</p>
  
  <p>Trying to get how I can make possible.</p>