summaryrefslogtreecommitdiff
path: root/dateutil
diff options
context:
space:
mode:
authorniemeyer <>2005-10-25 14:17:53 +0000
committerniemeyer <>2005-10-25 14:17:53 +0000
commit328d6ce6b9a14bf9cc2df23453b814dea7fd3f54 (patch)
treef41d3edfa02d297bf9f5aea220b625c5e6e29ef4 /dateutil
parent1fe251ec0a951b77f58f62ad7644577d7a8bba64 (diff)
downloaddateutil-328d6ce6b9a14bf9cc2df23453b814dea7fd3f54.tar.gz
- Fixed rrule byyearday handling. Abramo Bagnara pointed out that
RFC2445 allows negative numbers. - Updating NEWS file.
Diffstat (limited to 'dateutil')
-rw-r--r--dateutil/rrule.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dateutil/rrule.py b/dateutil/rrule.py
index e229387..04e1662 100644
--- a/dateutil/rrule.py
+++ b/dateutil/rrule.py
@@ -448,7 +448,8 @@ class rrule(rrulebase):
for i in dayset[start:end]:
if ((bymonth and ii.mmask[i] not in bymonth) or
(byweekno and not ii.wnomask[i]) or
- (byyearday and (i%ii.yearlen)+1 not in byyearday) or
+ (byyearday and (i%ii.yearlen)+1 not in byyearday
+ and -ii.yearlen+i not in byyearday) or
(byweekday and ii.wdaymask[i] not in byweekday) or
(ii.nwdaymask and not ii.nwdaymask[i]) or
(byeaster and not ii.eastermask[i]) or