mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 21:38:33 +00:00
fix django timezone.utc removed in 5.0
This commit is contained in:
parent
c7fc9c004f
commit
f067451267
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue