Daylight transitions are not correct on Unix.
authorEric Erhardt <eric.erhardt@microsoft.com>
Fri, 15 Jan 2016 17:54:24 +0000 (11:54 -0600)
committerEric Erhardt <eric.erhardt@microsoft.com>
Fri, 15 Jan 2016 17:54:24 +0000 (11:54 -0600)
commit39a13a771207ebef4f6cd14f176b6d8d822e94c7
tree2427ba2a80c6fc935b8a1e09b56b33fcc37c9ac0
parenta31dbef16b121d388068f19c73516a611b65cfe8
Daylight transitions are not correct on Unix.

When checking whether a DateTime is daylight savings time, TimeZoneInfo gets it wrong when the AdjustmentRule spans multiple years. This is because CheckIsDst will adjust the DateTime's Year to be the same as the AdjustmentRule.StartTime.Year. On Unix, this is incorrect because the AdjustmentRules are fixed for the whole time; the offset doesn't change at all during the AdjustmentRule.

This is a fix for the last 2 issues noted in #2185.
src/mscorlib/src/System/TimeZoneInfo.cs