fix can't subtract offset-naive and offset-aware datetimes

This commit is contained in:
hjlarry 2025-09-28 09:10:21 +08:00
parent 0fe529c3aa
commit edec065fee
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class TenantDailyRateLimiter:
# Get next midnight in UTC
next_midnight = datetime.combine(utc_now.date() + timedelta(days=1), time.min)
next_midnight = next_midnight.replace(tzinfo=UTC)
return int((next_midnight - utc_now).total_seconds())