projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af63885
)
Fix timezone lookup to be consistently case insensitive (#15951)
author
Jan Kotas
<jkotas@microsoft.com>
Sat, 20 Jan 2018 21:32:46 +0000
(13:32 -0800)
committer
GitHub
<noreply@github.com>
Sat, 20 Jan 2018 21:32:46 +0000
(13:32 -0800)
The timezone ids used case insensitive comparisons everywhere, except in the dictionary used to cache timezones.
Fixes dotnet/corefx#26479
src/mscorlib/shared/System/TimeZoneInfo.cs
patch
|
blob
|
history
diff --git
a/src/mscorlib/shared/System/TimeZoneInfo.cs
b/src/mscorlib/shared/System/TimeZoneInfo.cs
index
f9b5ce8
..
6e27376
100644
(file)
--- 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);