DST issue with java Calendar
<p>I am seeing this issue while using Calendar instance to subtract one hour from time when day light saving ends and we transition to standard time.
here is the code:   </p>

<pre><code> Date startTime = new Date();// Gives me Sun Nov 06 01:26:16 EST 2016
Calendar temp;
TimeZone timezone = TimeZone.getDefault(); //Eastern
temp= Calendar.getInstance(timezone);
temp.setTime(startTime);
temp.add(Calendar.HOUR_OF_DAY, -1);
 temp.set(Calendar.MILLISECOND, 0);
    Date endDate =  temp.getTime(); // This is still Sun Nov 06 01:26:16 EST 2016
</code></pre>

<p>The result that I expect in endDate is Sun Nov 06 01:26:16 EDT 2016 instead of Sun Nov 06 01:26:16 EST 2016. I am not sure if this is as designed or not. If I subtract 2 hours, then I see it working fine.
Any inputs on this?</p>

<p>Thanks,
SS</p>