Add time to api