From 322f491ab81c8f828276b565383f2fe414701225 Mon Sep 17 00:00:00 2001 From: Josiah Carlson Date: Mon, 8 Jul 2019 08:30:41 -0700 Subject: [PATCH] Fix bad increment, thanks to an email report from a developer at sina . com --- crontab/_crontab.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crontab/_crontab.py b/crontab/_crontab.py index 2b9efbd..1140905 100644 --- a/crontab/_crontab.py +++ b/crontab/_crontab.py @@ -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): diff --git a/setup.py b/setup.py index b151196..0a0e008 100644 --- a/setup.py +++ b/setup.py @@ -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',