I'm simply trying to convert a timestamp back into a human readable date but what I get when converted is strange and wrong.
This is how I save the timestamp:
var timestamp = Number(new Date());
var mydate = localStorag.getItem("mytimestamp");
var jsDate = new Date(mydate*1000);
To solve your problem is just don't multiply it with 1000.
This works for me.
var a = Number(new Date()) //1479895361931
date = new Date(a) //Wed Nov 23 2016 18:03:25 GMT+0800 (WITA)
I got correct time.