fix(billing): correct cutoff date for monthly usage calculations to June 27, 2025

This commit is contained in:
sharath 2025-06-27 15:45:49 +00:00
parent 929b329948
commit 235aec6d1e
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ async def calculate_monthly_usage(client, user_id: str) -> float:
# Use fixed cutoff date: June 27, 2025 midnight UTC
# Ignore all token counts before this date
cutoff_date = datetime(2025, 6, 28, 0, 0, 0, tzinfo=timezone.utc)
cutoff_date = datetime(2025, 6, 27, 0, 0, 0, tzinfo=timezone.utc)
# Use the later of the two dates (start of month or cutoff date)
start_of_month = max(start_of_month, cutoff_date)