From d0801c723a2e73b98908a832b61532c43db106c8 Mon Sep 17 00:00:00 2001 From: Arthur Campbell <51094020+arfacamble@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:51:20 +0100 Subject: [PATCH] ensure new date field converted to ISO 8601 format (#1807) --- app/services/exports/lettings_log_export_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/exports/lettings_log_export_service.rb b/app/services/exports/lettings_log_export_service.rb index 8749d682f..efe4cc889 100644 --- a/app/services/exports/lettings_log_export_service.rb +++ b/app/services/exports/lettings_log_export_service.rb @@ -185,6 +185,7 @@ module Exports attribute_hash["mrcdate"] = lettings_log.mrcdate&.iso8601 attribute_hash["startdate"] = lettings_log.startdate&.iso8601 attribute_hash["voiddate"] = lettings_log.voiddate&.iso8601 + attribute_hash["discarded_at"] = lettings_log.discarded_at&.iso8601 attribute_hash["cbl"] = 2 if attribute_hash["cbl"]&.zero? attribute_hash["cap"] = 2 if attribute_hash["cap"]&.zero?