from datetime import datetime
from pytz import timezone
print(datetime.strptime("2023-03-21T09:05:46.807Z", "%Y-%m-%dT%H:%M:%S.%fZ").replace(tzinfo=timezone("Africa/Cairo")))
it prints
2023-03-21 09:05:46.807000+02:05. with egypt offset as +02:05 but it should have been +02:00
hello
when i run the following code
it prints
2023-03-21 09:05:46.807000+02:05
. with egypt offset as +02:05 but it should have been +02:00