[PTRun][TimeZone]Fix error preventing search for standard time zones (#22256)

This commit is contained in:
Tantalus13A98B5F 2022-11-25 09:24:27 -05:00 committed by GitHub
parent ec26f67b38
commit 0b1bac1f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -858,7 +858,7 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Helper
/// <returns><see langword="true"/>if the query match, otherwise <see langword="false"/>.</returns>
internal static bool MatchStandardTimeNames(in TimeZoneProperties timeZoneProperties, Query query)
{
var result = timeZoneProperties.TimeNamesDaylight.Any(x => x.Contains(query.Search, StringComparison.CurrentCultureIgnoreCase));
var result = timeZoneProperties.TimeNamesStandard.Any(x => x.Contains(query.Search, StringComparison.CurrentCultureIgnoreCase));
return result;
}