add function to fetch server time