Skip to content

Commit 2348e96

Browse files
committed
Fix relativedelta for getting end of month
1 parent 3a80bfe commit 2348e96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kobo/apps/organizations/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def get_monthly_billing_dates(organization: Union[Organization, None]):
1212

1313
now = timezone.now().replace(tzinfo=pytz.UTC)
1414
first_of_this_month = now.replace(day=1)
15-
# Using `days=31` gets the last day of the month
16-
last_of_this_month = first_of_this_month + relativedelta(days=31)
15+
# Using `day=31` gets the last day of the month
16+
last_of_this_month = first_of_this_month + relativedelta(day=31)
1717

1818
# If no organization, just use the calendar month
1919
if not organization:

0 commit comments

Comments
 (0)