Skip to content

Commit 7dd8dfc

Browse files
Handle zero-offset timezone in logging test
See gh-28654
1 parent 7f39594 commit 7dd8dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ void testDateformatPatternDefault(CapturedOutput output) {
554554
initialize(loggingInitializationContext, null, null);
555555
this.logger.info("Hello world");
556556
assertThat(getLineWithText(output, "Hello world"))
557-
.containsPattern("\\d{4}-\\d{2}\\-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}[-+]\\d{2}:\\d{2}");
557+
.containsPattern("\\d{4}-\\d{2}\\-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}([-+]\\d{2}:\\d{2}|Z)");
558558
}
559559

560560
@Test

0 commit comments

Comments
 (0)