I have an endpoint in my spring boot application that returns date ranges. The backend is PostgreSQL and date columns in my database are defined as without timezone
I would like my endpoint in my spring boot application return the dates as is.
Currently, the dates get serialized with the timezone for the spring boot server.
Is there a way to configure my spring boot application to selectively ignore appending timezone data to the dates when serializing them?
the entity class is as below
public class Period{
private Date startdate;
private Date enddate;
}