From 9ca3f1b4c7891fab169d13f91434793c3a7a8678 Mon Sep 17 00:00:00 2001 From: jhh Date: Mon, 22 Feb 2021 08:50:05 -0600 Subject: convert date to instant for statistics Issue-ID: POLICY-3069 Signed-off-by: jhh Change-Id: I72f9db0cd70fc24a21425ad071717fc0e704bb59 --- .../src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'feature-lifecycle/src/main/java/org/onap') diff --git a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java index e2c50d4f..1fb1d4f5 100644 --- a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java +++ b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java @@ -22,9 +22,9 @@ package org.onap.policy.drools.lifecycle; import java.lang.reflect.InvocationTargetException; +import java.time.Instant; import java.util.ArrayList; import java.util.Collections; -import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -588,7 +588,7 @@ public class LifecycleFsm implements Startable { private PdpStatistics statisticsPayload() { PdpStatistics updateStats = new PdpStatistics(stats); - updateStats.setTimeStamp(new Date()); + updateStats.setTimeStamp(Instant.now()); try { BeanUtils.copyProperties(updateStats, PolicyEngineConstants.getManager().getStats()); -- cgit 1.2.3-korg