From: lukasz-jarocki-sonarsource Date: Thu, 28 Mar 2024 14:50:27 +0000 (+0100) Subject: SONAR-20331 improved json timestamp formatting to more consistent X-Git-Tag: 10.5.0.89998~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a4cf4229d6c511d2b3f8d6747b2cc1e6de23dded;p=sonarqube.git SONAR-20331 improved json timestamp formatting to more consistent --- 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");