• 
      

    Update for removed django.utils.timezone.utc.

    Review Request #14740 — Created Dec. 22, 2025 and submitted

    Information

    Django Evolution
    master

    Reviewers

    Django used to ship an alias from datetime.timezone.utc ->
    django.utils.timezone.utc, and removed it in Django 5.0. All our
    supported versions of Python include this, so we can just use it from
    datetime.timezone.

    Ran unit tests without this crashing.

    Summary ID
    Update for removed django.utils.timezone.utc.
    Django used to ship an alias from `datetime.timezone.utc` -> `django.utils.timezone.utc`, and removed it in Django 5.0. All our supported versions of Python include this, so we can just use it from `datetime.timezone`. Testing Done: Ran unit tests without this crashing.
    ypnwwyyuqkntnxnsskqqrlwvsqpwuymp
    chipx86
    1. Ship It!
    2. 
        
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (4fc6033)