wso2 / carbon-apimgt

Apache License 2.0
166 stars 626 forks source link

Register the JavaTimeModule in request path #12432

Closed dulithsenanayake closed 5 months ago

dulithsenanayake commented 5 months ago

This PR fixes https://github.com/wso2/api-manager/issues/2799.

Here we are registering the JavaTimeModule. There can be scenarios where customers already using a custom date/time format that conflicts with the default format used by the JavaTimeModule, might encounter issues with serialization or deserialization. For example, if the application expects dates in a specific format and the JavaTimeModule uses a different format by default, it could lead to inconsistencies or errors. Therefore we have introduced a system property register.timeModule and if only the property value is true we are registering the javaTimeModule. By default its value is false.

Related support PR : https://github.com/wso2-support/carbon-apimgt/pull/6449