diff options
author | lukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com> | 2024-03-28 15:50:27 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-03-28 20:02:51 +0000 |
commit | a4cf4229d6c511d2b3f8d6747b2cc1e6de23dded (patch) | |
tree | d17b6e4367467d14240dc604df3e42a5ef63ea01 /server/sonar-process/src | |
parent | 88688fca0c97b80ec5193175fd768429c6ed39a7 (diff) | |
download | sonarqube-a4cf4229d6c511d2b3f8d6747b2cc1e6de23dded.tar.gz sonarqube-a4cf4229d6c511d2b3f8d6747b2cc1e6de23dded.zip |
SONAR-20331 improved json timestamp formatting to more consistent
Diffstat (limited to 'server/sonar-process/src')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/logging/LogbackJsonLayout.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<ILoggingEvent> { - 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"); |