diff --git a/src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsinterventionsservice/dto/ChangelogValuesDTO.kt b/src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsinterventionsservice/dto/ChangelogValuesDTO.kt index 3d7ab4816..af94fc4a5 100644 --- a/src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsinterventionsservice/dto/ChangelogValuesDTO.kt +++ b/src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsinterventionsservice/dto/ChangelogValuesDTO.kt @@ -29,13 +29,13 @@ data class ChangelogValuesDTO( AmendTopic.NEEDS_AND_REQUIREMENTS_INTERPRETER_REQUIRED, "Interpreter required was changed" ) fun from(changelog: Changelog, userDetail: UserDetail): ChangelogValuesDTO { - val dateTimeFormatter = DateTimeFormatter.ofPattern("dd MMM yyyy 'at' h.mm a") + val dateTimeFormatter = DateTimeFormatter.ofPattern("dd MMM yyyy 'at' h.mma") return ChangelogValuesDTO( changelogId = changelog.id, referralId = changelog.referralId, topic = changelog.topic, description = amendTopicDescription[changelog.topic]!!, - changedAt = changelog.changedAt.format(dateTimeFormatter), + changedAt = changelog.changedAt.format(dateTimeFormatter).replace("AM", "am").replace("PM", "pm"), name = userDetail.firstName + ' ' + userDetail.lastName, reasonForChange = changelog.reasonForChange )