Converting UNIX format to normal human format

I found a better solution based on the post Timestamp to current date and time? - #22 by Paul-Reed .

var i;
for (i = 0; i <msg.payload.length; i++) {

var now = new Date(msg.payload[i].TIMESTAMP).toLocaleString("en-GB");

msg.payload[i].TIMESTAMP = now;

}

return msg;