Skip to content

Commit

Permalink
fix: limit precision to seconds (#2803)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke authored Feb 7, 2024
1 parent 85c89d7 commit 0c9626f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/benefit/applications/services/ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def _prepare_top_level_dict(application: Application, case_records: List[dict]) -> dict:
"""Prepare the dictionary that is sent to Ahjo"""
application_date = application.created_at.isoformat()
application_date = application.created_at.isoformat("T", "seconds")
message_title = f"Avustukset työnantajille, Työllisyyspalvelut, \
Työnantajan Helsinki-lisä, Työnantaja {application.company_name} {application.company.business_id},\
hakemusnumero {application.application_number}"
Expand Down Expand Up @@ -127,7 +127,7 @@ def _prepare_case_records(
main_document_record = _prepare_record(
"Hakemus",
"hakemus",
application.created_at.isoformat(),
application.created_at.isoformat("T", "seconds"),
[_prepare_record_document_dict(pdf_summary)],
handler,
ahjo_version_series_id=pdf_summary_version_series_id,
Expand Down

0 comments on commit 0c9626f

Please sign in to comment.