title: End of DayLight Saving Time Issue in java
body: <p>I am trying to find how DST works,for that I have written sample of code which talks about DST,I wonder why TimeZone changes at 1:00AM as per my understanding DST end 03 November 2013 at 2:00AM so at 2:00AM it should give 1:00AM then TimeZone should be chnaged, but its not like that. Can anyone help me out of this...</p>
  
  <pre><code>public static void main(String[] args) throws InterruptedException 
  {
      TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"));
      DateFormat fmt = new SimpleDateFormat("dd-MM-yy HH:mm:ss zz");
  
      Calendar cal = Calendar.getInstance();
      cal.set(2013, 10, 03, 0, 59, 59);
      System.out.println(fmt.format(cal.getTime()));
  
      cal.set(2013, 10, 03, 1, 0, 0);
      System.out.println(fmt.format(cal.getTime()));
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>03-11-13 00:59:59 PDT
  03-11-13 01:00:00 PST
  </code></pre>