diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-01-20 13:32:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 13:32:46 -0800 |
commit | ab91124003c73c28d0067f9a822b48eb829ad5cf (patch) | |
tree | 6014d8d1b85245424ec0979f4dda49436571b896 /src | |
parent | af6388558f6723bd04dde5399e66bbb9cbb27964 (diff) | |
download | coreclr-ab91124003c73c28d0067f9a822b48eb829ad5cf.tar.gz coreclr-ab91124003c73c28d0067f9a822b48eb829ad5cf.tar.bz2 coreclr-ab91124003c73c28d0067f9a822b48eb829ad5cf.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/mscorlib/shared/System/TimeZoneInfo.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mscorlib/shared/System/TimeZoneInfo.cs b/src/mscorlib/shared/System/TimeZoneInfo.cs index f9b5ce872a..6e27376b68 100644 --- a/src/mscorlib/shared/System/TimeZoneInfo.cs +++ b/src/mscorlib/shared/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); |