Patch apscheduler weekday (Sunday=0)
This commit is contained in:
@@ -104,7 +104,7 @@ class DayOfWeekField(BaseField):
|
||||
COMPILERS = BaseField.COMPILERS + [WeekdayRangeExpression]
|
||||
|
||||
def get_value(self, dateval):
|
||||
return dateval.isoweekday()
|
||||
return dateval.isoweekday() % 7
|
||||
|
||||
|
||||
class MonthField(BaseField):
|
||||
|
Reference in New Issue
Block a user