[mscorlib/Android] Support TimeZoneInfo.FindSystemTimeZoneById("Local")
authorJonathan Pryor <jonpryor@vt.edu>
Wed, 3 Dec 2014 16:15:41 +0000 (11:15 -0500)
committerJonathan Pryor <jonpryor@vt.edu>
Wed, 3 Dec 2014 16:25:29 +0000 (11:25 -0500)
commit77e11f7fa90568a073fdeadaf5754d6b48b3230e
tree77129b841cbbac8eacbae45c460e0c8fb60a8676
parent6856ccab7cc0dffa2df23a3db5832bf4bbb4620a
[mscorlib/Android] Support TimeZoneInfo.FindSystemTimeZoneById("Local")

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=24741

Xamarin.Android didn't previously support
TimeZoneInfo.FindSystemTimeZoneById("Local") because of oversight (and
overly nested #if conditionals).

Compare `id` against "Local" *before* doing platform-specific
codepaths so that finding the "Local" TimeZone works as expected on
Xamarin.Android, and merge the `#if MONODROID` with the existing code.
mcs/class/System.Core/System/TimeZoneInfo.cs