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
Description From Last Updated

Let's add the Version Changed here too.

maubinmaubin
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
maubin
  1. 
      
  2. djblets/datagrid/grids.py (Diff revision 1)
     
     
     
    Show all issues

    Let's add the Version Changed here too.

  3.