function test(time){ return new Date(parseInt( time ) * 1000).toLocaleString().replace(/:d{1,2}$/,' '); }