diff --git a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs index 5d942249bcb086..cae39b07c54820 100644 --- a/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs +++ b/src/libraries/System.Runtime/tests/System/TimeZoneInfoTests.cs @@ -3101,6 +3101,14 @@ private static unsafe int EnumUiLanguagesCallback(char* lpUiLanguageString, IntP // native string is null terminated var cultureName = new string(lpUiLanguageString); + string tzResourceFilePath = Path.Join(Environment.SystemDirectory, cultureName, "tzres.dll.mui"); + if (!File.Exists(tzResourceFilePath)) + { + // If Windows installed a UI language but did not include the time zone resources DLL for that language, + // then skip this language as .NET will not be able to get the localized resources for that language. + return 1; + } + try { var handle = GCHandle.FromIntPtr(lParam);