From b6df249cc2c4c9590dd3a324e109a761dcec061c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joa=CC=83o=20Matos?= Date: Mon, 2 Feb 2015 15:51:50 +0000 Subject: [PATCH] [corlib] Fixed build with NET_2_1 define. --- mcs/class/corlib/System/TimeZoneInfo.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mcs/class/corlib/System/TimeZoneInfo.cs b/mcs/class/corlib/System/TimeZoneInfo.cs index a6a3c1a106f..8a54529e214 100644 --- a/mcs/class/corlib/System/TimeZoneInfo.cs +++ b/mcs/class/corlib/System/TimeZoneInfo.cs @@ -108,12 +108,14 @@ namespace System return BuildFromStream ("Local", stream); } #else +#if !NET_2_1 if (IsWindows && LocalZoneKey != null) { string name = (string)LocalZoneKey.GetValue ("TimeZoneKeyName"); name = TrimSpecial (name); if (name != null) return TimeZoneInfo.FindSystemTimeZoneById (name); } +#endif var tz = Environment.GetEnvironmentVariable ("TZ"); if (tz != null) { -- 2.25.1