Showing date subtracting one date

Hello, I’m having a problem with my database on a NodeJS app running on CentOS and using MySQL.

As showed on the image below, the front end on my Cloud server is showing dates subtracting one date to each record. The nework connection is getting the date correctly. This is only happening on my cloud server, my local server (running on my Mac) it’s working correctly. Any ideas?

If I take the formatDate(‘dd/MM/yyyy’) shows the correct date.

The difference with my local Mac is that it assigns and hour to my date, I believe it’s a bug on the formatDate(‘dd/MM/yyyy’) option

This is how the Network connection looks on my Mac:

Formatting a date ending with Z on the clientside converts the date in the local time.

And how do I stop the server from converting the date to the client’s local time

1 Like