2025 Feb 12 6:40 PM - edited 2025 Feb 14 8:58 AM
Hi All,
OOTB DateAdapter class from webservicescommons has UTC time zone hardcoded. We need to make it system default time, but tried multiple ways to override the Adapter but nothing.
de.hybris.platform.webservicescommons.jaxb.adapters.DateAdapter
Can some suggest if there is any way we can override DateAdapter? There is one custom TimeZoneDateAdapter, we followed that process also to define our customer Date Adapter, but it didn't work.
Updated screenshots :
Solution for 2211.29:
Thanks.
Request clarification before answering.
Hi,
I can see that you tried to follow the steps described on Help page: Custom Configuration of the HTTP Message Converters. However from the screenshot I can see that you still used the OOTB DateAdapter. Have you tried implementing your own adapter and adding it to the list instead of the OOTB one? Keep in mind that this change will affect only the webservice available in your custom extension. If you wish to implement this change globally you would need to use a mechanism to change OOTB files. A simple way to achieve that is to use buildcallbacks in your custom extension and use ant to replace the OOTB list of adapters with the custom one. You can check an example how to do it in this answer. Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.