Skip to content

Commit

Permalink
fix: remove hardcoded timezone from comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 12, 2023
1 parent 153d932 commit 9ddb41f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions h5pxblock/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from datetime import datetime
from zipfile import ZipFile, is_zipfile

import pytz
from django.conf import settings
from django.core.files.base import ContentFile
from django.core.files.storage import default_storage, get_storage_class
Expand Down Expand Up @@ -120,4 +119,4 @@ def utcnow():
Returns:
datetime.datetime: Current date and time in UTC.
"""
return datetime.now(tz=pytz.utc)
return datetime.now()

0 comments on commit 9ddb41f

Please sign in to comment.