Fixed serverside time code to prevent exploits