Skip to content

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.

@peter-doggart
Copy link
Contributor

@foarsitter I agree, moving to stdlib is the way to go here.

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

3 participants