I'm trying to convert following string into datetime format
work_date="Sun Aug 23 20:16:44 IST 2020"
dt_new=datetime.datetime.strptime(work_date,"%a %b %d %H:%M:%S %Z %Y")
print(dt_new)
But I am always getting timedata does not match the format. I tried replacing IST with GMT, it works. Also tried replacing IST with 'Asia/Kolkata' but it still doesn't work. I wanted to know if there is some way to register IST under %Z format.