function timestampToDate(timestamp){
// Convert UNIX timestamp to local date
// If you don't like the date format, try something else, such as toLocaleDateString() manually formatting the date here
var tempDate = new Date(timestamp * 1000);
var strTime = tempDate.getFullYear() + '/' + String(tempDate.getMonth()+1).padStart(2,'0') + '/' + String(tempDate.getDate()).padStart(2,'0') + ' '+tempDate.toLocaleTimeString();
return strTime;
}