diff --git a/idhub/models.py b/idhub/models.py index 4e9cf6f..f2e9e67 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -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