diff --git a/src/main/java/it/gov/innovazione/ndc/service/AlerterMailSender.java b/src/main/java/it/gov/innovazione/ndc/service/AlerterMailSender.java index 9e490c7..be32c63 100644 --- a/src/main/java/it/gov/innovazione/ndc/service/AlerterMailSender.java +++ b/src/main/java/it/gov/innovazione/ndc/service/AlerterMailSender.java @@ -164,14 +164,14 @@ private String getEvents(List eventDtos) { private String toLocalDate(Instant createdAt) { return DateTimeFormatter.ofPattern("dd MMMM yyyy HH:mm:ss") - .withZone(ZoneId.systemDefault()) + .withZone(ZoneId.of("Europe/Rome")) .format(createdAt); } private String toSubList(Map context) { return ""; } diff --git a/src/main/resources/templates/alerter_mail_template.html b/src/main/resources/templates/alerter_mail_template.html index 00cdf9e..3c67047 100644 --- a/src/main/resources/templates/alerter_mail_template.html +++ b/src/main/resources/templates/alerter_mail_template.html @@ -1,4 +1,4 @@ -

Ciao ${recipient.name} ${recipient.surname}

+

Ciao ${recipient.name} ${recipient.surname}

Di seguito i dettagli degli eventi riscontrati:

${eventList}

Origine: Generata automaticamente dall'harvester.