function formatDateTime(formatDate){ //13位时间戳,java js. (php时间戳为10位)
var returnDate;
if(formatDate == null){
returnDate = "";
}else{
returnDate = (moment(formatDate).format('YYYY-MM-DD HH:mm:ss'));
}
return returnDate;
}
//获取本地时间
var d = new Date();
var time_zone = -d.getTimezoneOffset() / 60;
if (time_zone > 0) {
time_zone = "+" + time_zone;
}
//获取本地时区