Fixes randomDateTimeZone method (#35145)
The randomDateTimeZone method shouldn't return deprecated timezones this causes some tests to fail with deprecation warning.
This commit is contained in:
parent
bfaa94f53e
commit
b5e5e93c46
|
@ -230,7 +230,7 @@ public abstract class ESTestCase extends LuceneTestCase {
|
|||
|
||||
// filter out joda timezones that are deprecated for the java time migration
|
||||
List<String> jodaTZIds = DateTimeZone.getAvailableIDs().stream()
|
||||
.filter(DateUtils.DEPRECATED_SHORT_TZ_IDS::contains).sorted().collect(Collectors.toList());
|
||||
.filter(s -> DateUtils.DEPRECATED_SHORT_TZ_IDS.contains(s) == false).sorted().collect(Collectors.toList());
|
||||
JODA_TIMEZONE_IDS = Collections.unmodifiableList(jodaTZIds);
|
||||
|
||||
List<String> javaTZIds = Arrays.asList(TimeZone.getAvailableIDs());
|
||||
|
|
Loading…
Reference in New Issue