summaryrefslogtreecommitdiff
path: root/paste/util
diff options
context:
space:
mode:
Diffstat (limited to 'paste/util')
-rw-r--r--paste/util/datetimeutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/util/datetimeutil.py b/paste/util/datetimeutil.py
index 7fbccbe..182fc6b 100644
--- a/paste/util/datetimeutil.py
+++ b/paste/util/datetimeutil.py
@@ -217,7 +217,7 @@ def parse_date(val):
elif chk in _wkdy:
now = date.today()
idx = list(_wkdy).index(chk)
- while now.day_of_week != idx:
+ while now.isoweekday() != idx:
now += _one_day
# allow dates to be modified via + or - /w number of days, so