mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-05 13:48:10 +08:00
fix bug: complement data error (#6460)
This commit is contained in:
parent
a8baa9553f
commit
a502e643bc
@ -185,6 +185,11 @@ public class CronUtils {
|
||||
*/
|
||||
public static List<Date> getSelfFireDateList(final Date startTime, final Date endTime, final List<Schedule> schedules) {
|
||||
List<Date> result = new ArrayList<>();
|
||||
if(startTime.equals(endTime)){
|
||||
result.add(startTime);
|
||||
return result;
|
||||
}
|
||||
|
||||
Date from = new Date(startTime.getTime() - Constants.SECOND_TIME_MILLIS);
|
||||
Date to = new Date(endTime.getTime() - Constants.SECOND_TIME_MILLIS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user