diff options
author | jhh <jorge.hernandez-herrero@att.com> | 2021-02-22 08:50:05 -0600 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2021-02-22 08:50:05 -0600 |
commit | 9ca3f1b4c7891fab169d13f91434793c3a7a8678 (patch) | |
tree | b8508238d28483a08da0f830629c56459727d0f5 /feature-lifecycle/src/main/java/org | |
parent | d6083133bac5c1a54681a004468d416993d47d7f (diff) |
convert date to instant for statistics
Issue-ID: POLICY-3069
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I72f9db0cd70fc24a21425ad071717fc0e704bb59
Diffstat (limited to 'feature-lifecycle/src/main/java/org')
-rw-r--r-- | feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |