diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-01-21 00:32:46 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-01-24 00:14:52 +0300 |
commit | a7ec5fbba2a70c2ad3ecad336834cf8071fd4807 (patch) | |
tree | b79867c90ff1c479bc2d94022b88f740cb4a14f9 /src | |
parent | b53747fe5708d47a49e751fc5537946979953452 (diff) |
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 <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Common/src/CoreLib/System/TimeZoneInfo.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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<string, TimeZoneInfo>(); + cachedData._systemTimeZones = new Dictionary<string, TimeZoneInfo>(StringComparer.OrdinalIgnoreCase); cachedData._systemTimeZones.Add(id, match); |