aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Sharma (153216) <sharrahu@amdocs.com>2017-10-06 17:44:28 -0400
committerSkip Wonnell <skip@att.com>2017-10-07 14:05:51 +0000
commitc645cb8f522294ab1a06be3d83fbee4af1b532e2 (patch)
treeeab79a54ddab9620e14714d8d458be7a9b3737a1
parenta132582db7f3718d51959cd093bea5198bf94530 (diff)
Fix for the LCM Restart Request date issue
Issue-Id: APPC-262 Change-Id: I34455f902d55ff0c97ca1dc81e7388da388d735e Signed-off-by: Rahul Sharma <Rahul.Sharma2@amdocs.com>
-rw-r--r--appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java b/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java
index 542d8137e..cbf7f975a 100644
--- a/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java
+++ b/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java
@@ -43,6 +43,7 @@ import org.onap.ccsdk.sli.core.sli.SvcLogicException;
import org.onap.ccsdk.sli.core.sli.provider.SvcLogicService;
import java.text.SimpleDateFormat;
+import java.util.Date;
import java.util.Enumeration;
import java.util.Map;
import java.util.Properties;
@@ -165,7 +166,7 @@ public class WorkFlowManagerImpl implements WorkFlowManager{
}
private void populateDGContext(Properties workflowParams, WorkflowRequest workflowRequest) {
- workflowParams.put("input.common-header.timestamp",new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(workflowRequest.getRequestContext().getCommonHeader().getTimeStamp()));
+ workflowParams.put("input.common-header.timestamp",new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(Date.from(workflowRequest.getRequestContext().getCommonHeader().getTimeStamp())));
workflowParams.put("input.common-header.api-ver",workflowRequest.getRequestContext().getCommonHeader().getApiVer());
workflowParams.put("input.common-header.request-id",workflowRequest.getRequestContext().getCommonHeader().getRequestId());
workflowParams.put("input.common-header.originator-id",workflowRequest.getRequestContext().getCommonHeader().getOriginatorId());