def registerTzinfo(obj, tzinfo):
        """
        Register tzinfo if it's not already registered, return its tzid.
        """
        tzid = obj.pickTzid(tzinfo)
        if tzid and not getTzid(tzid, False):
            registerTzid(tzid, tzinfo)
        return tzid