调用: getLocalTime(mtime)
<script type="text/javascript">
function getLocalTime(nS) {
var date = new Date(nS);
var yy = date.getFullYear();
var mm = date.getMonth();
var dd = date.getDate();
var hh = date.getHours();
var MM = date.getMinutes();
var ss = date.getSeconds();
return yy+'-'+mm+'-'+dd+' '+hh+':'+MM+':'+ss;
}
</script>