def str_to_datetime(s):
    return utc_to_local(datetime.strptime(s, '%Y-%m-%dT%H:%M:%SZ'))
Converts ISO 8601 string (2009-11-10T21:11Z) to LOCAL datetime
dataset/ETHPy150Open shelfworthy/python-spreedly/api.py/str_to_datetime