I have API
with node.js
and express.js
. In the database the fields of type datetime
are saved correctly, but in the response of a request GET
the date fields come with 3 more hours due to the time zone.
I am making this request and consuming json
in a web application and in a android nativo
app.
I wonder how I could solve it. Is there any possibility of removing timezone
in the API, or should I configure something in the database or server? I'm using MySQL
.
Example:
**DB:** 2017-10-02 10:58:34
**JSON:** "2017-10-02T13:58:34.000Z"