Fixes time zone issues when running on Windows
authorNiklas Therning <niklas@therning.org>
Thu, 15 Sep 2016 14:18:05 +0000 (16:18 +0200)
committerNiklas Therning <niklas@therning.org>
Thu, 15 Sep 2016 14:18:05 +0000 (16:18 +0200)
commitc6e0d5d7068cec1ea3bba850f9734e189422f2fe
tree7d83fd068dbe59a4c54de56e9b7a3a89db0d402e
parent14c783f1ec07b95cd2aa893ae77f1303eb7e6163
Fixes time zone issues when running on Windows

TimeZoneInfo.GetDaylightChanges() didn't work as expected when run against the
time zone data available in Windows.

This patch also enables most of the time zone related tests that were
previously ignored when not run on Unix platforms. Time zone ids will now be
mapped from tz db time zone names to Windows time zone names when needed so
that most of the tests can be run on Mono on Windows as well.
mcs/class/corlib/System/TimeZoneInfo.cs
mcs/class/corlib/Test/System/TimeZoneInfo.AdjustmentRuleTest.cs
mcs/class/corlib/Test/System/TimeZoneInfoTest.cs
mcs/class/corlib/Test/System/TimeZoneTest.cs