import re


def _int_tz(offset: str):
    """Returns UTC offset in hours, when Daylight Saving is not in effect.

    >>> _int_tz('-6/-7*')
    -6
    """
    tz_re = re.compile(r'^-?\d+')
    m = tz_re.search(offset.replace('+', ''))
    if m:
        return int(m.group(0))
    return 0