diff --git a/escheduler-common/src/main/java/cn/escheduler/common/utils/placeholder/BusinessTimeUtils.java b/escheduler-common/src/main/java/cn/escheduler/common/utils/placeholder/BusinessTimeUtils.java index 4af0ccf582..c6c35d3d70 100644 --- a/escheduler-common/src/main/java/cn/escheduler/common/utils/placeholder/BusinessTimeUtils.java +++ b/escheduler-common/src/main/java/cn/escheduler/common/utils/placeholder/BusinessTimeUtils.java @@ -54,11 +54,11 @@ public class BusinessTimeUtils { case SCHEDULER: default: businessDate = addDays(new Date(), -1); - if (businessDate != null){ + if (runTime != null){ /** * If there is a scheduled time, take the scheduling time. Recovery from failed nodes, suspension of recovery, re-run for scheduling */ - businessDate = runTime; + businessDate = addDays(runTime, -1); } break; }