def isoformat_with_tz(time_obj, utc_hour):
    """Format to 8601 with timezone offset"""

    txt = time_obj.strftime("%Y-%m-%dT%H:%M:%S")
    txt = "{0}{1:+03d}:00".format(txt, utc_hour)
    return txt