diff --git a/tests/multihosts/src/test/java/org/jboss/hal/testsuite/test/runtime/multihosts/DisconnectedHostsTest.java b/tests/multihosts/src/test/java/org/jboss/hal/testsuite/test/runtime/multihosts/DisconnectedHostsTest.java index 4f8ebf9f..1333e94f 100644 --- a/tests/multihosts/src/test/java/org/jboss/hal/testsuite/test/runtime/multihosts/DisconnectedHostsTest.java +++ b/tests/multihosts/src/test/java/org/jboss/hal/testsuite/test/runtime/multihosts/DisconnectedHostsTest.java @@ -144,7 +144,9 @@ private String getLastDatetime(List eventList, String eventType) { .mapToLong(event -> event.get(TIMESTAMP).asLong()).max().getAsLong(); LocalDateTime ldt = LocalDateTime.ofInstant(Instant.ofEpochMilli(maxTimestamp), ZoneId.systemDefault()); - return ldt.format(DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM)) + ", " + String formatted = ldt.format(DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM)) + ", " + ldt.format(DateTimeFormatter.ofLocalizedTime(FormatStyle.MEDIUM)); + // Normalize narrow no-break space (U+202F) used by newer JDK locale data before AM/PM + return formatted.replace('\u202F', ' '); } }