I have a spring boot application where the timezone of a ZonedDateTime field gets converted to UTC when a RESTful API receives a request body that has a ZonedDateTime field. How can I make the application keep the original timezone only for one field and convert it to UTC for all other fields?
I know we can disable this for all fields by adding the below line to the properties file, but in my case I don't want to disable it for all fields, I just want to disable it for one field.
spring.jackson.deserialization.ADJUST_DATES_TO_CONTEXT_TIME_ZONE = false