diff --git a/app/main/views/organizations.py b/app/main/views/organizations.py index 74a8a63cc..3baba4f52 100644 --- a/app/main/views/organizations.py +++ b/app/main/views/organizations.py @@ -25,7 +25,6 @@ from app.main.views.dashboard import ( from app.models.organization import AllOrganizations, Organization from app.models.user import InvitedOrgUser, User from app.utils.csv import Spreadsheet -from app.utils.time import parse_naive_dt from app.utils.user import user_has_permissions, user_is_platform_admin from notifications_python_client.errors import HTTPError @@ -106,12 +105,6 @@ def get_services_usage(organization, year): service["usage"] = ", ".join(usage_parts) if usage_parts else "No usage" - if "created_at" in service and isinstance(service["created_at"], str): - try: - service["created_at"] = parse_naive_dt(service["created_at"]) - except (ValueError, TypeError): - service["created_at"] = None - services.append(service) return services diff --git a/app/templates/views/organizations/organization/index.html b/app/templates/views/organizations/organization/index.html index bb6e89983..7b9c8f188 100644 --- a/app/templates/views/organizations/organization/index.html +++ b/app/templates/views/organizations/organization/index.html @@ -107,7 +107,7 @@ {{ service.usage|default('N/A') }} {{ service.primary_contact|default('N/A') }} {{ service.recent_template|default('N/A') }} - {{ service.created_at.strftime('%b %d, %Y') if service.created_at else 'N/A' }} + {{ service.created_at|format_date_normal if service.created_at else 'N/A' }} {% endfor %} {% else %}