Any wanderers with the same issue, who might have missed chridam's comment, you just need to cast the passed timestamp to int before parsing. This works:
int
new Date(parseInt(req.query.timestamp))