def METHOD_NAME(self, date: list[str]) -> datetime:
    """Format the times provided by the api to datetime forms."""
    try:
        return datetime.strptime(date, "%Y-%m-%dT%H:%M:%S%z")
    except ValueError:
        # there is a possibility of an event not having a time, just a day
        # to catch this, we try again without time information
        return datetime.strptime(date, "%Y-%m-%d").replace(tzinfo=UTC)