from dateutil import tz
from datetime import datetime


def format_utc(date):
    """
    A function to convert UTC to a local timezone, then output it in a
    readable format.
    """

    utc_zone = tz.tzutc()
    local_zone = tz.tzlocal()

    timestamp = datetime.utcfromtimestamp(date)
    utc = timestamp.replace(tzinfo=utc_zone)
    local = utc.astimezone(local_zone)
    string = local.strftime('%B %d, %Y at %I:%M %p')

    return string