api to get the server time