How to convert UTC datetime string to local datetime in Python?

Hi, I have a string representing a datetime in UTC format, and I want to convert it to the local timezone. I’ve tried using datetime.strptime() and pytz but I’m not getting the expected results.

Here’s my code:

This code runs without errors, but the output is incorrect. I’m expecting to get 2022-05-11 00:00:00+05:30 (since my local timezone is Asia/Kolkata and there’s a 5:30 hour difference with UTC), but instead I’m getting 2022-05-10 16:30:00+05:30, which is the same as the input.

Can someone help me figure out what I’m doing wrong and how to properly convert a UTC datetime string to a local datetime in Python? Thanks!