Skip to content

Commit 12d292c

Browse files
spinscalerjernst
authored andcommitted
Core: Fix Java Time DateFormatter printers (#32592)
A bug in the test suite prevented to properly check that all date formatters printed the date the same way like joda time does. This fixes the test and thus also a fair share of formats, that now use the strict parser for printing.
1 parent f6c1c31 commit 12d292c

File tree

3 files changed

+931
-519
lines changed

3 files changed

+931
-519
lines changed

server/src/main/java/org/elasticsearch/common/time/CompoundDateTimeFormatter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ public CompoundDateTimeFormatter withZone(ZoneId zoneId) {
7070
public String format(TemporalAccessor accessor) {
7171
return printer.format(accessor);
7272
}
73+
7374
}

0 commit comments

Comments
 (0)