Skip to content

RFE: use zoneinfo instead of pytz #1398

@kloczek

Description

@kloczek

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions