summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2017-11-26 22:43:57 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2017-11-26 22:43:57 +0200
commitad9109042b727fe1366b7f1b10382766a9a3469f (patch)
tree3994e7f256c90a3a53522400b41879a4352f195e
parentb1fdeb2aa1f48c956ff78bc4531d5629200ad1b0 (diff)
downloadapscheduler-ad9109042b727fe1366b7f1b10382766a9a3469f.tar.gz
Fixed the maximum value for CronTrigger's "year" field
datetime.date() does not take years higher than 9999.
-rw-r--r--apscheduler/triggers/cron/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apscheduler/triggers/cron/fields.py b/apscheduler/triggers/cron/fields.py
index 892bc13..1f101c8 100644
--- a/apscheduler/triggers/cron/fields.py
+++ b/apscheduler/triggers/cron/fields.py
@@ -13,7 +13,7 @@ __all__ = ('MIN_VALUES', 'MAX_VALUES', 'DEFAULT_VALUES', 'BaseField', 'WeekField
MIN_VALUES = {'year': 1970, 'month': 1, 'day': 1, 'week': 1, 'day_of_week': 0, 'hour': 0,
'minute': 0, 'second': 0}
-MAX_VALUES = {'year': 2 ** 63, 'month': 12, 'day:': 31, 'week': 53, 'day_of_week': 6, 'hour': 23,
+MAX_VALUES = {'year': 9999, 'month': 12, 'day:': 31, 'week': 53, 'day_of_week': 6, 'hour': 23,
'minute': 59, 'second': 59}
DEFAULT_VALUES = {'year': '*', 'month': 1, 'day': 1, 'week': '*', 'day_of_week': '*', 'hour': 0,
'minute': 0, 'second': 0}