If a MONTHLY list starts on the 31st of the month, we mustn't
return e.g. 31st June.
else:
return None
self.now.set_wday()
- return self.now
+ return self.now, self.now.day <= daysin(self.now.mon, self.now.yr)
# Each BY* is filter which will discards moments, or generates sub-moments.
# e.g. BYMONTH will discard non-matching MONTHLY, WEEKLY etc moments, and
if n1:
last = n1[-1]
ret.extend(n1)
- last = s.next()
+ last, valid = s.next()
+ while not valid and 'BYDAY' not in rr.bylist and 'BYMONTHDAY' not in rr.bylist:
+ last, valid = s.next()
if rr.count:
ret = ret[:rr.count]
if rr.end: