1. When i use
    Code:
            var date = new Date(time.GetUnixTimestamp() * 1000);
            var hours = date.getHours();
            var seconds = date.getSeconds();
            var minutes = date.getMinutes();
            var days = date.getDay();
            var months = date.getMonth();
            var years = 1900 + date.getYear();
            var currentDate = (years + "-" + months + "-" + days + " " + hours + ":" + minutes + ":" + seconds);
    
    It get me 2015-08-03 01:52:57 while my time is 2015-09-09 03:55....
     
  2. Try this:
    Code:
    var unix = Math.round(+new Date()/1000);
    var date = new Date(unix * 1000);
    var currentDate = ('0' + date.getDate()).slice(-2) + '/' + ('0' + (date.getMonth() + 1)).slice(-2) + '/' + date.getFullYear() + ' ' + ('0' + date.getHours()).slice(-2) + ':' + ('0' + date.getMinutes()).slice(-2);
    
     
  3. Thanks this works fine.