aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process/src
diff options
context:
space:
mode:
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>2024-03-28 15:50:27 +0100
committersonartech <sonartech@sonarsource.com>2024-03-28 20:02:51 +0000
commita4cf4229d6c511d2b3f8d6747b2cc1e6de23dded (patch)
treed17b6e4367467d14240dc604df3e42a5ef63ea01 /server/sonar-process/src
parent88688fca0c97b80ec5193175fd768429c6ed39a7 (diff)
downloadsonarqube-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.java2
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");