summaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authormark.j.leonard <mark.j.leonard@gmail.com>2018-10-26 11:08:37 +0100
committermark.j.leonard <mark.j.leonard@gmail.com>2018-10-26 11:08:37 +0100
commit1f71a723db2dfe4275b5fd94ff71a8dfc59fe69b (patch)
tree745c5559c999196e3ff30c5e8751cd54b95eaba1 /src/test/java
parentc440925424eccd750b4971eb8a10e8ef32929e90 (diff)
Do not apply timezone offsets to the test Clock1.3.1
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>
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/onap/aai/babel/service/TestInfoService.java2
1 files changed, 1 insertions, 1 deletions
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());
}
}