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

RFE: use zoneinfo instead of pytz #1398

Open
kloczek opened this issue May 30, 2024 · 2 comments
Open

RFE: use zoneinfo instead of pytz #1398

kloczek opened this issue May 30, 2024 · 2 comments

Comments

@kloczek
Copy link

kloczek commented May 30, 2024

Switch to standard zoneinfo module.
Below may help pydantic/pydantic-core@fd262933

pyproject.toml:    "pytz",
requirements-dev.txt:pytz==2022.6
tests/test_datetime.py:import pytz
tests/test_datetime.py:from pytz import timezone
tests/test_datetime.py:                datetime.datetime(2020, 1, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:                datetime.datetime(2020, 1, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:                datetime.datetime(2020, 1, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:                datetime.datetime(2020, 1, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:    d1 = datetime.datetime(2020, 1, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:    d2 = datetime.datetime(2020, 1, 21, 12, 0, 0, tzinfo=pytz.utc)
tests/test_datetime.py:    d1 = datetime.datetime(2020, 1, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:    d2 = datetime.datetime(2020, 1, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:    d1 = datetime.datetime(2020, 6, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:    d2 = datetime.datetime(2020, 6, 21, 12, 0, 0, tzinfo=pytz.utc).astimezone(
tests/test_datetime.py:        datetime.datetime(2020, 6, 21, 12, 0, 0, tzinfo=pytz.utc)
tests/test_datetime.py:        datetime.datetime(2020, 6, 21, 12, 0, 0, tzinfo=pytz.utc)
@sgillies
Copy link
Member

@kloczek it's a good suggestion, thank you! Is this something you'd be interested in working on, along with the use of backports.zoneinfo for Python 3.8?

@kloczek
Copy link
Author

kloczek commented Jun 19, 2024

AFAIK none know still supported distros is using 3.8.
In distro which I'm using is used 3.10.14 (soon will be migration to 3.11)

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

No branches or pull requests

2 participants