convert date to instant for statistics 65/118165/1
authorjhh <jorge.hernandez-herrero@att.com>
Mon, 22 Feb 2021 14:50:05 +0000 (08:50 -0600)
committerjhh <jorge.hernandez-herrero@att.com>
Mon, 22 Feb 2021 14:50:05 +0000 (08:50 -0600)
Issue-ID: POLICY-3069
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I72f9db0cd70fc24a21425ad071717fc0e704bb59

feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java

index e2c50d4..1fb1d4f 100644 (file)
@@ -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());