Files
Aegis/backend/app/services
kitos 89a951c2a2
Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
fix(decay-engine): strip tzinfo from validated_at before datetime arithmetic
The previous fix changed _now() to return naive UTC, but the code still
called .replace(tzinfo=utc) on most_recent (from DB) before subtracting.
This caused "can't subtract offset-naive and offset-aware datetimes".
Now we strip tzinfo if present, keeping everything naive UTC consistently.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 16:35:02 +02:00
..