I keep getting crazy with all of these time functions. I have a string being in a specific format and UTC time. I want to output the time only, but in another timezone. Thats what I have, the original one is X. I want the output to be "%M:%S" but with a different timezone. I do not want to hardcode a timedelta due to daylight saving time.
x = "2022-10-11T14:00:00Z"
tz = timezone("Europe/Berlin")
tz.localize(datetime.strptime(x, "%Y-%m-%dT%H:%M:%SZ"))
THe localize line converts to the other timezone successfully, but I dont get it to just show the time in the end.