Because your time is in seconds. Javascript requires it to be in milliseconds since the era. Multiply it by 1000, and that should be what you want.
var timeInSeconds = ~(new Date).getTime();
console.log(new Date(timeInSeconds));
console.log(new Date(timeInSeconds*1000));
source
share