Fix tz rules (#10169)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Tue, 14 Mar 2017 19:12:04 +0000 (12:12 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2017 19:12:04 +0000 (12:12 -0700)
commitc2b5d5a707e3bb037df847e17b4e55e19fd5bfa8
tree0a875c5980472ead1bd1ce87a28798c250da2440
parentc52a9f7a3019d408cd03aef9e5fb33263cb047ba
Fix tz rules (#10169)

* Fix the TZ Rule data on Linux

On Linux when the caller ask for the TZ adjustment rules we convert the internal stored rule data from UTC to local time. we used to TZI.Convert which is wrong because calculating the start the daylight start time should always not include the daylight delta because we didn't start the daylight saving yet. and calculating the end of daylight should always include the daylight delta because we were in the daylight saving period.

The fix here is manually calculating the start and end of the daylight saving inside the rule

* Revert the comment change

* Add a comment
src/mscorlib/src/System/TimeZoneInfo.Unix.cs