From bf74190de496da8d9e38967bbd8489a034c68221 Mon Sep 17 00:00:00 2001 From: Smulligan Date: Thu, 12 Dec 2024 15:57:15 -0500 Subject: [PATCH] change year formatting to 4 digit to avoid error --- app/importers/com_data/com_effort_xml_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/importers/com_data/com_effort_xml_builder.rb b/app/importers/com_data/com_effort_xml_builder.rb index 4cbd9ad..499e02f 100644 --- a/app/importers/com_data/com_effort_xml_builder.rb +++ b/app/importers/com_data/com_effort_xml_builder.rb @@ -18,7 +18,7 @@ def build_xml_effort(batch) batch.each do |faculty| xml.Record('PennStateHealthUsername' => faculty.com_id) do faculty.com_efforts.each do |com_effort| - event_date = Date.strptime(com_effort.event_date, '%m/%d/%Y') + event_date = Date.strptime(com_effort.event_date, '%m/%d/%y') xml.INSTRUCT_TAUGHT do xml.COURSE_YEAR_ com_effort.course_year, access: 'READ_ONLY' xml.COURSE_TITLE_ com_effort.course, access: 'READ_ONLY'