1
0
Fork 0
mirror of synced 2024-05-20 04:12:30 +12:00

fix django timezone.utc removed in 5.0

This commit is contained in:
Nick Sweeting 2024-05-06 07:13:25 -07:00
parent c7fc9c004f
commit f067451267
No known key found for this signature in database

View file

@ -1 +1,7 @@
__package__ = 'archivebox'
# monkey patch django timezone to add back utc (it was removed in Django 5.0)
import datetime
from django.utils import timezone
timezone.utc = datetime.timezone.utc