Fix bad increment, thanks to an email report from a developer at sina . com

This commit is contained in:
Josiah Carlson 2019-07-08 08:30:41 -07:00
parent b2bd254cf1
commit 322f491ab8
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ WARN_CHANGE = object()
def _end_of_month(dt):
ndt = dt + DAY
while dt.month == ndt.month:
dt += DAY
ndt += DAY
return ndt.replace(day=1) - DAY
def _month_incr(dt, m):

View file

@ -10,7 +10,7 @@ except:
setup(
name='crontab',
version='0.22.5',
version='0.22.6',
description='Parse and use crontab schedules in Python',
author='Josiah Carlson',
author_email='josiah.carlson@gmail.com',