From 88b1ea171cda078413af0b82bc9f33cd4ce633d2 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 15 Nov 2023 11:52:19 +0100 Subject: [PATCH] fix utc time --- idhub/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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