[mscorlib/Android] TimeZoneInfo.Local.Id should be "Local".
authorJonathan Pryor <jonpryor@vt.edu>
Fri, 24 Oct 2014 19:41:20 +0000 (15:41 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Fri, 24 Oct 2014 19:56:13 +0000 (15:56 -0400)
commitf7fd52ad18464ad9c40516c2c59b406c1b12e8c9
tree499217653fbd5e4e5100cdda81929cc1529cd512
parent84472a332ea2db43c27b6d9496adb7858a273485
[mscorlib/Android] TimeZoneInfo.Local.Id should be "Local".

On Mono/.NET, TimeZoneInfo.Local has a TimeZoneInfo.Id value of
"Local" and a TimeZoneInfo.DisplayName value of "Local":

$ csharp
csharp> TimeZoneInfo.Local.Id;
"Local"
csharp> TimeZoneInfo.Local.DisplayName;
"Local"

That isn't the case on Xamarin.Android, which returns the timezoneinfo
ID value from both DisplayName and Id, e.g. TimeZoneInfo.Local could
have Id and DisplayName values of "Australia/Sydney".

Rework things so that the TimeZoneInfo.Id and TimeZoneInfo.DisplayName
properties return "Local" on Xamarin.Android for the instance returned
from TimeZoneInfo.Local, just like normal Mono/.NET does.
mcs/class/System.Core/System/TimeZoneInfo.Android.cs
mcs/class/System.Core/System/TimeZoneInfo.cs