Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed failed unit tests caused by using pytz inappropriately #621

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

buttonfly1000
Copy link

As per the document https://pythonhosted.org/pytz/ :

Unfortunately using the tzinfo argument of the standard datetime constructors 'does not work' with pytz for many timezones.

This fixes #620

As per the document https://pythonhosted.org/pytz/ :
`Unfortunately using the tzinfo argument of the standard datetime constructors 'does not work' with pytz for many timezones`.

This fixes python-restx#620
@foarsitter
Copy link
Contributor

Thanks @buttonfly1000

Here is some background on the issue: https://engineering.backmarket.com/moving-forward-in-pythons-time-and-time-zones-aa3ccbd4569a

I think we need to remove pytz and implement zoneinfo. Thos is a 3.9 feature but support for 3.8 is EOL on 31 Oct 2024 so it can be dropped safely.

@foarsitter
Copy link
Contributor

In #622 I replaced pytz with stdlib equivalents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some unit tests not passed
2 participants