Function to get time on server.