use new Date() instead of Date.now() to get latest_visit