From 50f20162934c1d3282615dce6696e3b56141f7ac Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 24 Sep 2021 16:33:51 -0700 Subject: [PATCH] Fix timezone specific failing test Update `MvcNamespaceTests` so that the asserted time is in UTC. --- .../springframework/web/servlet/config/MvcNamespaceTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java index 05a9745896..60406a0026 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java @@ -246,7 +246,7 @@ public class MvcNamespaceTests { adapter.handle(request, response, handlerMethod); assertThat(handler.recordedValidationError).isTrue(); - assertThat(handler.date).isInSameDayAs("2009-10-31"); + assertThat(handler.date).isInSameDayAs("2009-10-31T00:00:00+00:00"); assertThat(handler.percent).isEqualTo(Double.valueOf(0.9999)); CompositeUriComponentsContributor uriComponentsContributor = this.appContext.getBean(