EDIT:
The server was sending a Date Object even if the browser was displaying the Date Object as a normal string. Once I found that I just changed the type of the data from Object to String, and the date remained as expected. Thanks for your help.
=========================================================================
Working on a webapp to display some data I retrieve from an API on a raspberry. The data is correctly sent over by the API through a MySQL request to the API server but the datetime string is changed when the data arrives to the nodeJS application server, like in the picture:
As you can see from the image, on the right is the data sent from the mysql server to the nodejs server. I am console.logging the data directly after the request is sent from the API endpoint to the mysql server. On the left is the same data displayed in JSON in the browser by sending a normal GET request to the same API endpoint that is logged in the terminal window on the right. You should notice that the data is the same, but on the left side the dateandtime string has been changed by one hour for no reason that I can think of. I do not process the dateandtime data on the servers so it's not been changed by some function or process that I created.
Thanks in advance for the help!