diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/util/GradLocalDateTimeDeserializer.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/util/GradLocalDateTimeDeserializer.java index a065b019..d73aa6ac 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/util/GradLocalDateTimeDeserializer.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/util/GradLocalDateTimeDeserializer.java @@ -55,7 +55,7 @@ public LocalDateTime deserialize(JsonParser jsonParser, DeserializationContext d formatter = DateTimeFormatter.ofPattern("yyyy/MM/ddTHH:mm:ss.000+00:00"); return LocalDateTime.parse(dateAsString, formatter); } else if(StringUtils.isNotBlank(dateAsString) && dateAsString.length() > 10 && dateAsString.contains("-") && dateAsString.contains("T")) { - formatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; + formatter = DateTimeFormatter.ofPattern("yyyy-MM-ddTHH:mm:ss"); return LocalDateTime.parse(dateAsString, formatter); } else if(StringUtils.isNotBlank(dateAsString)) { return LocalDateTime.parse(dateAsString, formatter);