Do not apply timezone offsets to the test Clock 05/71305/1 1.3.1
authormark.j.leonard <mark.j.leonard@gmail.com>
Fri, 26 Oct 2018 10:08:37 +0000 (11:08 +0100)
committermark.j.leonard <mark.j.leonard@gmail.com>
Fri, 26 Oct 2018 10:08:37 +0000 (11:08 +0100)
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 <mark.j.leonard@gmail.com>
src/test/java/org/onap/aai/babel/service/TestInfoService.java

index 647f1b0..d481b9a 100644 (file)
@@ -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());
     }
 
 }