Skip to content

Commit

Permalink
fix dst bug for Nov 1 as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
d0ughb0y committed Mar 9, 2015
1 parent b15a78f commit f145bc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Network.ino
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ boolean IsDST(time_t t)
dstStart += 2*SECS_PER_HOUR;
te.Month=11;
dstEnd = makeTime(te);
dstEnd = nextSunday(dstEnd); //first sunday in november
if (dayOfWeel(dstEnd)!=dowSunda) //if Nov 1 is already a Sundau, skip call to nextSunday
dstEnd = nextSunday(dstEnd); //first sunday in november
dstEnd += SECS_PER_HOUR;
return (t>=dstStart && t<dstEnd);
}
Expand Down

0 comments on commit f145bc9

Please sign in to comment.