Time Zone transitions are 1 tick off on Linux
authorEric Erhardt <eerhardt@microsoft.com>
Tue, 15 Sep 2015 22:49:54 +0000 (17:49 -0500)
committerEric Erhardt <eerhardt@microsoft.com>
Wed, 16 Sep 2015 18:20:50 +0000 (13:20 -0500)
commit5841002dca5c1138e4c51ccf6ab16bf9c6e177e6
tree1031386b7cec074a0aa20cec91d4e093c0291ff3
parent235d807ed6012590241a8e21433a257df7de264a
Time Zone transitions are 1 tick off on Linux

When we build the AdjustmentRules up, we set the StartDate to be the Transition Time that comes from the tzfile, and we set the EndDate to the be (the next Transition Time - 1 tick). That way the next AdjustmentRule goes into effect at the exact transition time. The issue is that the code in CheckIsDst uses a less than operator when comparing the endTime, but for these rules it should be less than or equal to.

Fix https://github.com/dotnet/corefx/issues/2788.
src/mscorlib/src/System/TimeZoneInfo.cs