sakaiproject/nakamura — pull request #404 by zathomas (2011-11-14 18:33:49+00:00)
Title: KERN-2349 calculate daylight savings correctly

This turned out to be a misunderstanding (with good cause) of the TimeZone API.

tz.getDSTSavings();

returns the amount of time to use to offset daylight savings _whether it is currently in effect or not_. To use it correctly, you have to combine it with the boolean method:

java.util.Date now = new java.util.Date();
tz.inDaylightTime(now);