Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion credentials/apps/badges/issuers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from django.contrib.contenttypes.models import ContentType
from django.db import transaction
from django.utils import timezone
from django.utils.translation import gettext as _

from credentials.apps.badges.accredible.api_client import AccredibleAPIClient
Expand Down Expand Up @@ -152,7 +153,7 @@ def issue_credly_badge(self, *, user_credential):
issued_to_first_name=(user.first_name or user.username),
issued_to_last_name=(user.last_name or user.username),
badge_template_id=str(badge_template.uuid),
issued_at=badge_template.created.strftime("%Y-%m-%d %H:%M:%S %z"),
issued_at=timezone.now().strftime("%Y-%m-%d %H:%M:%S %z"),
)

try:
Expand Down