From a4cf4229d6c511d2b3f8d6747b2cc1e6de23dded Mon Sep 17 00:00:00 2001 From: lukasz-jarocki-sonarsource Date: Thu, 28 Mar 2024 15:50:27 +0100 Subject: [PATCH] SONAR-20331 improved json timestamp formatting to more consistent --- .../main/java/org/sonar/process/logging/LogbackJsonLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-process/src/main/java/org/sonar/process/logging/LogbackJsonLayout.java b/server/sonar-process/src/main/java/org/sonar/process/logging/LogbackJsonLayout.java index 40cc70323dd..8103200290d 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/logging/LogbackJsonLayout.java +++ b/server/sonar-process/src/main/java/org/sonar/process/logging/LogbackJsonLayout.java @@ -46,7 +46,7 @@ import static java.util.Objects.requireNonNull; */ public class LogbackJsonLayout extends LayoutBase { - static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ISO_OFFSET_DATE_TIME + static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSXXX") .withLocale(Locale.US) .withZone(ZoneId.systemDefault()); private static final Pattern NEWLINE_REGEXP = Pattern.compile("\n"); -- 2.39.5