This is an automated email from the ASF dual-hosted git repository.
leonbao pushed a commit to branch 2.0-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/2.0-prepare by this push:
new f8b68dc fix bug: complement data error (#6460)
f8b68dc is described below
commit f8b68dccd736acdeac2b49defba98fd674e6d163
Author: OS <[email protected]>
AuthorDate: Fri Oct 8 16:56:33 2021 +0800
fix bug: complement data error (#6460)
---
.../org/apache/dolphinscheduler/service/quartz/cron/CronUtils.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/quartz/cron/CronUtils.java
b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/quartz/cron/CronUtils.java
index ab9a97b..f23da26 100644
---
a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/quartz/cron/CronUtils.java
+++
b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/quartz/cron/CronUtils.java
@@ -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);