diff --git a/app/services/csv/lettings_log_csv_service.rb b/app/services/csv/lettings_log_csv_service.rb index a034d6a04..cbe77ff96 100644 --- a/app/services/csv/lettings_log_csv_service.rb +++ b/app/services/csv/lettings_log_csv_service.rb @@ -156,7 +156,7 @@ module Csv value = log.public_send(attribute) get_label(value, attribute, log) elsif DATE_FIELDS.include? attribute - log.public_send(attribute)&.iso8601 + log.public_send(attribute)&.strftime("%F") elsif PERSON_DETAILS.any? { |key, _value| key == attribute } && person_details_not_known?(log, attribute) case @export_type when "codes" diff --git a/app/services/csv/sales_log_csv_service.rb b/app/services/csv/sales_log_csv_service.rb index 57f48c126..be83189c0 100644 --- a/app/services/csv/sales_log_csv_service.rb +++ b/app/services/csv/sales_log_csv_service.rb @@ -74,7 +74,7 @@ module Csv value = log.send(attribute) get_label(value, attribute, log) elsif DATE_FIELDS.include? attribute - log.send(attribute)&.iso8601 + log.public_send(attribute)&.strftime("%F") else value = log.public_send(attribute) case @export_type