Fix function call to get time.