Skip to content

Commit f46291b

Browse files
fix: correct aggregation date calculation in unified_cost_service
1 parent 1710209 commit f46291b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spaceone/cost_analysis/service/unified_cost_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ def _get_is_confirmed_with_aggregation_month(
727727
aggregation_day = unified_cost_config.get("aggregation_day", 15)
728728
is_last_day = unified_cost_config.get("is_last_day", False)
729729

730-
last_day = self.get_is_last_day(current_date, is_last_day, aggregation_day)
730+
last_day = self.get_is_last_day(aggregation_date, is_last_day, aggregation_day)
731731

732732
aggregation_date = aggregation_date.replace(day=last_day) + relativedelta(
733733
months=1

0 commit comments

Comments
 (0)