from datetime import datetime


def str_to_datetime(date_str: str) -> datetime:
    """String to datetime.

    Args:
        date_str (str): date_str

    Returns:
        datetime: Datetime object
    """
    return datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S%z")