Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2018-01-21 00:32:46 +0300
committerJan Kotas <jkotas@microsoft.com>2018-01-24 00:14:52 +0300
commita7ec5fbba2a70c2ad3ecad336834cf8071fd4807 (patch)
treeb79867c90ff1c479bc2d94022b88f740cb4a14f9 /src
parentb53747fe5708d47a49e751fc5537946979953452 (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.cs2
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);