Skip to content

Commit

Permalink
Use calendar year quarters [fix #223]
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Jun 22, 2020
1 parent 588db7f commit e38da4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion did/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def last_month():
def this_quarter():
""" Return start and end date of this quarter. """
since = TODAY + delta(day=1)
while since.month % 3 != 0:
while since.month % 3 != 1:
since -= delta(months=1)
until = since + delta(months=3)
return Date(since), Date(until)
Expand Down

0 comments on commit e38da4c

Please # to comment.