From: mark.j.leonard Date: Fri, 26 Oct 2018 10:08:37 +0000 (+0100) Subject: Do not apply timezone offsets to the test Clock X-Git-Tag: 1.3.1^0 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fbabel.git;a=commitdiff_plain;h=1f71a723db2dfe4275b5fd94ff71a8dfc59fe69b Do not apply timezone offsets to the test Clock Use UTC for the Clock value that is passed to the Info Service as a test, to avoid any Daylight Savings adjustments. Change-Id: Id9cafdae6e63bd5908ffe8f61ca21c617e86b08b Issue-ID: AAI-1766 Signed-off-by: mark.j.leonard --- diff --git a/src/test/java/org/onap/aai/babel/service/TestInfoService.java b/src/test/java/org/onap/aai/babel/service/TestInfoService.java index 647f1b0..d481b9a 100644 --- a/src/test/java/org/onap/aai/babel/service/TestInfoService.java +++ b/src/test/java/org/onap/aai/babel/service/TestInfoService.java @@ -63,7 +63,7 @@ public class TestInfoService { } private Clock buildClock(LocalDateTime dateTime) { - return Clock.fixed(dateTime.toInstant(ZoneOffset.UTC), Clock.systemDefaultZone().getZone()); + return Clock.fixed(dateTime.toInstant(ZoneOffset.UTC), Clock.systemUTC().getZone()); } }