This is an automated email from the ASF dual-hosted git repository.

wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 5ebd982e92 [Bug] [Api] The copied workflow create time and update time 
is still copied from the original workflow
5ebd982e92 is described below

commit 5ebd982e920c9196210fc1e619afb73d81689d2b
Author: zhuxt2015 <[email protected]>
AuthorDate: Tue Jun 28 21:33:58 2022 +0800

    [Bug] [Api] The copied workflow create time and update time is still copied 
from the original workflow
---
 .../api/service/impl/ProcessDefinitionServiceImpl.java                 | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
index f8444f45ef..753b55d8ef 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
@@ -1788,6 +1788,9 @@ public class ProcessDefinitionServiceImpl extends 
BaseServiceImpl implements Pro
                 processDefinition.setId(0);
                 processDefinition.setUserId(loginUser.getId());
                 processDefinition.setName(processDefinition.getName() + 
"_copy_" + DateUtils.getCurrentTimeStamp());
+                final Date date = new Date();
+                processDefinition.setCreateTime(date);
+                processDefinition.setUpdateTime(date);
                 if (StringUtils.isNotBlank(processDefinition.getLocations())) {
                     ArrayNode jsonNodes = 
JSONUtils.parseArray(processDefinition.getLocations());
                     for (int i = 0; i < jsonNodes.size(); i++) {

Reply via email to