• 
      

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

    Review Request #14605 — Created Sept. 10, 2025 and submitted — Latest diff uploaded

    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 datetime.timezone.utc

    Ran unit tests and no longer saw the warning.

    Commits

    Files