rq / django-rq

A simple app that provides django integration for RQ (Redis Queue)
MIT License
1.84k stars 286 forks source link

Use `datetime.timezone.utc` instead of `django.utils.timezone.utc` #610

Closed oscarhermoso closed 11 months ago

oscarhermoso commented 1 year ago

Required to support Django 5.0, as per this warning message:

/usr/local/lib/python3.11/site-packages/django_rq/templatetags/django_rq.py:13: RemovedInDjango50Warning: The django.utils.timezone.utc alias is deprecated. Please update your code to use datetime.timezone.utc instead.
utc_time = time.replace(tzinfo=timezone.utc)
selwin commented 1 year ago

Mind opening a PR for this?