fix utc time

This commit is contained in:
Cayo Puigdefabregas 2023-11-15 11:52:19 +01:00
parent b13488fdd4
commit 88b1ea171c
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import json
import pytz
import requests
import datetime
from django.db import models
@ -509,7 +510,7 @@ class VerificableCredential(models.Model):
self.status = self.Status.ISSUED
self.subject_did = did
self.issued_on = datetime.datetime.now()
self.issued_on = datetime.datetime.now().astimezone(pytz.utc)
self.data = sign_credential(
self.render(),
self.issuer_did.key_material