Merge pull request #1325 from GSA/1283-standardize-the-dates-from-format_datetime_short-to-either-numerical-or-text

Standardizing Datetimes to Numeric and Table Formats
This commit is contained in:
Carlo Costino
2024-03-26 13:29:13 -04:00
committed by GitHub
12 changed files with 51 additions and 61 deletions

View File

@@ -18,7 +18,7 @@ from notifications_utils.template import EmailPreviewTemplate, SMSBodyPreviewTem
from app import (
current_service,
format_datetime_short,
format_datetime_table,
notification_api_client,
service_api_client,
)
@@ -93,7 +93,7 @@ def view_job_csv(service_id, job_id):
mimetype="text/csv",
headers={
"Content-Disposition": 'inline; filename="{} - {}.csv"'.format(
job.template["name"], format_datetime_short(job.created_at)
job.template["name"], format_datetime_table(job.created_at)
)
},
)