from dateutil import tz
from datetime import datetime


def convertTimeToLocal(time: str):
    """Converts an ISO format UTC time to a local time.
    
    Args:
        time: UTC time to be converted in ISO format.
        
    Returns:
        The time in local time based on POSIX TZ variable.
    """
    from_zone = tz.gettz('UTC')
    to_zone = tz.gettz() # May want to get local time for lat long in the future
    utc = datetime.fromisoformat(time)
    utc = utc.replace(tzinfo=from_zone)
    local = utc.astimezone(to_zone)
    return local