Skip to content

Commit f58231e

Browse files
committed
fix forbidden api
1 parent d463df2 commit f58231e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/CrossClusterLookupJoinIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.time.ZonedDateTime;
2323
import java.time.format.DateTimeFormatter;
2424
import java.util.List;
25+
import java.util.Locale;
2526
import java.util.Map;
2627

2728
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
@@ -150,7 +151,7 @@ public void testLookupJoinWithDatemath() throws IOException {
150151
ZonedDateTime nextMidnight = nowUtc.plusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0);
151152
// If we're too close to midnight, we could create index with one day and query with another, and it'd fail.
152153
assumeTrue("Skip if too close to midnight", Duration.between(nowUtc, nextMidnight).toMinutes() >= 5);
153-
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd");
154+
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd", Locale.ROOT);
154155
String lookupIndexName = "values_lookup_" + nowUtc.format(formatter);
155156

156157
populateLookupIndex(LOCAL_CLUSTER, lookupIndexName, 10);

0 commit comments

Comments
 (0)