update date format

This commit is contained in:
Beverly Nguyen
2025-10-21 14:37:27 -07:00
parent 0a3d21215c
commit b76ab1a679
2 changed files with 1 additions and 8 deletions

View File

@@ -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

View File

@@ -107,7 +107,7 @@
<td>{{ service.usage|default('N/A') }}</td>
<td>{{ service.primary_contact|default('N/A') }}</td>
<td>{{ service.recent_template|default('N/A') }}</td>
<td>{{ service.created_at.strftime('%b %d, %Y') if service.created_at else 'N/A' }}</td>
<td>{{ service.created_at|format_date_normal if service.created_at else 'N/A' }}</td>
</tr>
{% endfor %}
{% else %}