From a7ec5fbba2a70c2ad3ecad336834cf8071fd4807 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 20 Jan 2018 13:32:46 -0800 Subject: Fix timezone lookup to be consistently case insensitive (#15951) The timezone ids used case insensitive comparisons everywhere, except in the dictionary used to cache timezones. Fixes dotnet/corefx#26479 Signed-off-by: dotnet-bot-corefx-mirror --- src/Common/src/CoreLib/System/TimeZoneInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Common/src/CoreLib/System/TimeZoneInfo.cs b/src/Common/src/CoreLib/System/TimeZoneInfo.cs index f9b5ce872a..6e27376b68 100644 --- a/src/Common/src/CoreLib/System/TimeZoneInfo.cs +++ b/src/Common/src/CoreLib/System/TimeZoneInfo.cs @@ -1894,7 +1894,7 @@ namespace System if (result == TimeZoneInfoResult.Success) { if (cachedData._systemTimeZones == null) - cachedData._systemTimeZones = new Dictionary(); + cachedData._systemTimeZones = new Dictionary(StringComparer.OrdinalIgnoreCase); cachedData._systemTimeZones.Add(id, match); -- cgit v1.2.3