mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-23 03:06:55 -04: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
Add a link
Reference in a new issue