Skip to content

Commit

Permalink
remove date+1 when the data is supplemented (apache#7452)
Browse files Browse the repository at this point in the history
  • Loading branch information
SbloodyS committed Dec 18, 2021
1 parent 60001f8 commit 08e8ba0
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ private void preBuildBusinessParams() {
// replace variable TIME with $[YYYYmmddd...] in shell file when history run job and batch complement job
if (taskExecutionContext.getScheduleTime() != null) {
Date date = taskExecutionContext.getScheduleTime();
if (CommandType.COMPLEMENT_DATA.getCode() == taskExecutionContext.getCmdTypeIfComplement()) {
date = DateUtils.add(taskExecutionContext.getScheduleTime(), DAY_OF_MONTH, 1);
}
String dateTime = DateUtils.format(date, Constants.PARAMETER_FORMAT_TIME);
Property p = new Property();
p.setValue(dateTime);
Expand Down

0 comments on commit 08e8ba0

Please sign in to comment.