Switch away from deprecated django.utils.timezone.utc.

Review Request #14605 — Created Sept. 10, 2025 and updated

Information

Review Board
release-7.1.x

Reviewers

Once upon a time, Python didn't have good APIs for dealing with time
zones, and Django shipped their own utc helper. That changed, and
django.utils.timezone.utc is scheduled for removal in 5.0 and raises a
warning. This change replaces it with timezone.now()

Ran unit tests and no longer saw the warning.

Summary ID
Switch away from deprecated django.utils.timezone.utc.
Once upon a time, Python didn't have good APIs for dealing with time zones, and Django shipped their own utc helper. That changed, and `django.utils.timezone.utc` is scheduled for removal in 5.0 and raises a warning. This change replaces it with `timezone.now()` Testing Done: Ran unit tests and no longer saw the warning.
qrroqpqvtxmmkrwowqlwzkkpvkuzqkom
Checks run (2 succeeded)
flake8 passed.
JSHint passed.