fix utc time
This commit is contained in:
parent
b13488fdd4
commit
88b1ea171c
|
@ -1,4 +1,5 @@
|
||||||
import json
|
import json
|
||||||
|
import pytz
|
||||||
import requests
|
import requests
|
||||||
import datetime
|
import datetime
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
@ -509,7 +510,7 @@ class VerificableCredential(models.Model):
|
||||||
|
|
||||||
self.status = self.Status.ISSUED
|
self.status = self.Status.ISSUED
|
||||||
self.subject_did = did
|
self.subject_did = did
|
||||||
self.issued_on = datetime.datetime.now()
|
self.issued_on = datetime.datetime.now().astimezone(pytz.utc)
|
||||||
self.data = sign_credential(
|
self.data = sign_credential(
|
||||||
self.render(),
|
self.render(),
|
||||||
self.issuer_did.key_material
|
self.issuer_did.key_material
|
||||||
|
|
Loading…
Reference in a new issue