Apache Ignite - Rest API timestamp format

Viewed 42

I have upgraded Ignite 2.7.6 on Java 8 to Ignite 2.13 on Java 11. In the REST API response the timestamp format has changed. Locale and all other ENV variables on the host are equal.

Is there a possibility to define the format of the timestamp output in the Ignite configuration?

Example of timestamp data, difference is in "," after year.

Ignite 2.7.6 Java 8 -> "Sep 18, 2019 12:57:35 PM"

Ignite 2.13 Java 11 -> "Aug 31, 2022, 12:43:44 PM"

1 Answers

The issue is related to the default locale provider change in the Java 9+, see JEP 252.

As a workaround, you can set the next option to enable behavior compatible with Java 8:

-Djava.locale.providers=COMPAT
Related