def local_time(time):
    """Returns the local time of the given (e.g. UTC) time.

    Args:
        time: A `datetime.datetime` object.

    Returns:
        A `datetime.datetime` object with local (system) time zone.
    """
    return time.astimezone()