Fix call to secs_to_time

secs_to_time was made global in existing code, but some calls to self.secs_to_time() never got the self. removed.