Convert datetime.datetime time to local time zone

    If value doesn't have tzinfo, then defaulttz is set.
    Default value of defaulttz is UTC.

def to_local(value, defaulttz=None):
    """Convert datetime.datetime time to local time zone

    If value doesn't have tzinfo, then defaulttz is set.
    Default value of defaulttz is UTC.
    """
    if defaulttz is None:
        defaulttz = tzutc()
    return _convert(value, tzlocal(), defaulttz)