1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #4005: Include timezone context in webhook timestamps

This commit is contained in:
Jeremy Stretch
2020-01-24 12:00:24 -05:00
parent 629712142f
commit d3463b596a
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import hashlib
import hmac
from django.contrib.contenttypes.models import ContentType
from django.utils import timezone
from extras.models import Webhook
from utilities.api import get_serializer_for_model
@ -62,7 +63,7 @@ def enqueue_webhooks(instance, user, request_id, action):
serializer.data,
instance._meta.model_name,
action,
str(datetime.datetime.now()),
str(timezone.now()),
user.username,
request_id
)