From @pedrobsaila #72258 (comment):
libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs : seems to handle case where link is not resolved. I'm not sure whether I should validate or not.
|
if (File.Exists(tzFilePath)) |
|
{ |
|
try |
|
{ |
|
rawData = File.ReadAllBytes(tzFilePath); |
|
if (string.IsNullOrEmpty(id)) |
|
{ |
|
id = FindTimeZoneIdUsingReadLink(tzFilePath); |
|
|
|
if (string.IsNullOrEmpty(id)) |
|
{ |
|
id = FindTimeZoneId(rawData); |
|
} |
|
} |
|
return true; |
|
} |
|
catch (IOException) { } |
|
catch (SecurityException) { } |
|
catch (UnauthorizedAccessException) { } |
|
} |
|
return false; |
From @pedrobsaila #72258 (comment):