adding the call to the server to get time