When I call Get service, In the output json, 'createdDate' is coming -1 less than the actual date in database (in input json).
for ex. In the input json, Below is the date that is supposed to be stored in the database through post request.
{
"createdDate" : "2018-07-10"
}
Now, When I call Get request, I am getting below json in which date is -1 less than the date in database(input json).
{
"createdDate" : "2018-07-09"
}
Here is my 'createdDate' column in pojo:
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone="UTC")
@Column(name="created_date")
private Date createdDate;