Replace pytz usage.

Review Request #14784 — Created Jan. 15, 2026 and updated

Information

Djblets
release-6.x

Reviewers

Django has switched from pytz to using Python's built-in timezone
support. While pytz is still more or less interchangeable with this,
there are a few small differences (such as how some datetimes get
serialized to ISO-8601) which can trip up our unit tests.

Given that the standard library now has everything we need, there's also
no reason for us to have pytz as a dependency.

Ran unit tests.

Summary ID
Replace pytz usage.
Django has switched from pytz to using Python's built-in timezone support. While pytz is still more or less interchangeable with this, there are a few small differences (such as how some datetimes get serialized to ISO-8601) which can trip up our unit tests. Given that the standard library now has everything we need, there's also no reason for us to have pytz as a dependency. Testing Done: Ran unit tests.
zpvyuylnnvkvwvooytlylvskownmyoxk
Checks run (2 succeeded)
flake8 passed.
JSHint passed.