I am having some problem converting this datetime format: 2021-08-12T09:15:17+02:00 from string to datetime.
The piece of code I'm using to convert it is the following:
value = datetime.strptime('2021-08-12T09:15:17+02:00', "%Y-%m-%dT%H:%M:%S%z")
Everything seems to work correctly if the python version used is 3.8, while if the version is 3.6 I get the following error:
ValueError: time data '2021-08-12T09:15:17+02:00' does not match format '%Y-%m-%dT%H:%M:%S%z'
How can I solve?