forked from github/dataease
fix: 周表达式无效
This commit is contained in:
parent
c959aa074f
commit
314b9fae66
@ -79,7 +79,8 @@ public abstract class TaskHandler implements InitializingBean {
|
|||||||
|
|
||||||
private String getDayOfWeek(Calendar instance) {
|
private String getDayOfWeek(Calendar instance) {
|
||||||
int index = instance.get(Calendar.DAY_OF_WEEK);
|
int index = instance.get(Calendar.DAY_OF_WEEK);
|
||||||
return week[index];
|
index = (index + 1) % 7;
|
||||||
|
return String.valueOf(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user