INSERT INTO public."TB_ALERTE"("TR_SENSORNAME", "TR_INFO","TR_DATEHEURE") VALUES ( 'SENSOR/ TOILETTE' , 'ON','{{msg.payload}}');
the payload is coming from a function
const d = new Date();
msg.payload = d.toLocaleString();
return msg;
but the problem is the value written in the db is not readable
6& #x2F;27& #x2F;2025, 10:36:23 AM
i put some space in the text because your website correct it
how can i be able to see the date like that
6/27/2025, 11:10:22 AM
For timestamp fields, since you are trying to store the current date/time, you could use the Progres current_timestamp function
So that would be something like
Looks like the postgres Database or something else is converting special characters to Unicode Hex Character Code / (/).
Saying that you should store all timestamps in a database as universal time, and when you need to display read the universal time and convert to local time. This will cause you less issues further down the line.