I have a Rest API in java that is getting the wrong date. JavaScript sends the following JSON:
{
"pessdtcad": "2018-02-24",
"dataNascimento": "1984-05-18",
"nome": "GUSTAVO DE FREITAS",
"sexo": "M",
}
And the backend shows the dates one day less.
For example, when adding JSON above this is the information I get in the back:
GUSTAVO DE FREITAS;
Thu May 17 21:00:00 BRT 1984;
Fri Feb 23 21:00:00 BRT 2018
Has anyone ever gone through this and could you help me?