Is it the MS SQL or MySQL that is showing the incorrect time? The difference seems to be the timezone, so probably one of the dates is being retrieved as UTC.
@George, @patrick
I think that the problem is that MS SQL stores its date internally as UTC. MySQL stores the local date.
NodeJS reads the MySQL local date as UTC date. This ist wrong, because it does not send the information of the timezone difference. As I live in Germany I have UTC+1. This is the reason for the difference in MySQL.
To correct this, it should be possible to set a timezone for the MySQL database connection. Otherwise I never get my tables in sync. A formatter does not help in this case.
I hope you can understand what I meant in my bad english
There are some options on the database clients for the timezones. As mentioned in your linked article for MySQL you have the timezone option. For MSSQL there is an useUTC option. The default value for MySQL is local time while MSSQL seems to use UTC as default.
When you open the connection in the code editor you can edit the json, add the option for that client to the connection object. Try both options to see what is required for your app, I think it is localtime.
@George, @patrick I found out that the database json is overwritten on each start of Wappler or load of the project. That means that I have to take care that I have to revert the changes in git. A solution for this problem would be a great help.