server file

If you create the date object out here it will always be equal to the time that the server was started and not the current time.