FinRL-Tutorials
FinRL-Tutorials copied to clipboard
Please resolve this issue: AttributeError: 'UTC' object has no attribute 'key'
/usr/local/lib/python3.10/site-packages/exchange_calendars/calendar_helpers.py in parse_date(date, param_name, calendar, raise_oob)
377 ts = parse_timestamp(date, param_name, raise_oob=False, side="left", utc=False)
378
--> 379 if ts.tz is not None:
380 raise ValueError(
381 f"Parameter {param_name} received with timezone defined as '{ts.tz.key}'"
AttributeError: 'UTC' object has no attribute 'key'