Update last few references in yaml tests from ROOT locale to ENGLISH (#112791)
This commit is contained in:
parent
d1d29773b0
commit
0d8042e98e
|
@ -19,7 +19,7 @@ setup:
|
|||
script: |
|
||||
Instant instant = Instant.ofEpochMilli(params._source.timestamp);
|
||||
ZonedDateTime dt = ZonedDateTime.ofInstant(instant, ZoneId.of("UTC"));
|
||||
emit(dt.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.ROOT));
|
||||
emit(dt.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.ENGLISH));
|
||||
# Test fetching many values
|
||||
day_of_week_letters:
|
||||
type: keyword
|
||||
|
@ -218,7 +218,7 @@ setup:
|
|||
day_of_week:
|
||||
type: keyword
|
||||
script: |
|
||||
emit(doc['timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.SHORT, Locale.ROOT));
|
||||
emit(doc['timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.SHORT, Locale.ENGLISH));
|
||||
- do:
|
||||
search:
|
||||
index: sensor
|
||||
|
|
|
@ -28,7 +28,7 @@ setup:
|
|||
script: |
|
||||
Instant instant = Instant.ofEpochMilli(params._source.timestamp);
|
||||
ZonedDateTime dt = ZonedDateTime.ofInstant(instant, ZoneId.of("UTC"));
|
||||
emit(dt.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.ROOT));
|
||||
emit(dt.dayOfWeek.getDisplayName(TextStyle.FULL, Locale.ENGLISH));
|
||||
# Test fetching many values
|
||||
day_of_week_letters:
|
||||
type: keyword
|
||||
|
|
Loading…
Reference in New Issue