Skip to content

Wrong egypt timezone when using datetime replace #98

Description

@Om4ar

hello

when i run the following code

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions