controller makes api calls to get time