Fix call to secs_to_time