zilencer: Switch to the more canonical import form of timezone_now().

This commit is contained in:
Alex Vandiver 2023-09-18 15:07:13 +00:00 committed by Tim Abbott
parent bdf6b210b8
commit c22a1b7b88
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ from django.core.validators import URLValidator, validate_email
from django.db import IntegrityError, transaction from django.db import IntegrityError, transaction
from django.db.models import Model from django.db.models import Model
from django.http import HttpRequest, HttpResponse from django.http import HttpRequest, HttpResponse
from django.utils import timezone
from django.utils.crypto import constant_time_compare from django.utils.crypto import constant_time_compare
from django.utils.timezone import now as timezone_now
from django.utils.translation import gettext as _ from django.utils.translation import gettext as _
from django.utils.translation import gettext as err_ from django.utils.translation import gettext as err_
from django.views.decorators.csrf import csrf_exempt from django.views.decorators.csrf import csrf_exempt
@ -179,7 +179,7 @@ def register_remote_push_device(
token=token, token=token,
ios_app_id=ios_app_id, ios_app_id=ios_app_id,
# last_updated is to be renamed to date_created. # last_updated is to be renamed to date_created.
last_updated=timezone.now(), last_updated=timezone_now(),
**kwargs, **kwargs,
) )
except IntegrityError: except IntegrityError: